提货单信息 #10

Merged
caoliancun merged 1 commits from caolc into master 2 years ago
  1. 2
      src/views/order/components/billOfLading.vue
  2. 12
      src/views/product/components/create.vue
  3. 2
      src/views/product/index.vue
  4. 2
      src/views/refineryCenter/components/billOfLading.vue

@ -110,7 +110,7 @@
<el-dialog :close-on-click-modal="false" :append-to-body="true" title="提货单信息" width="400px" :visible.sync="dialogBillAdd"> <el-dialog :close-on-click-modal="false" :append-to-body="true" title="提货单信息" width="400px" :visible.sync="dialogBillAdd">
<el-form v-if="dialogBillAdd" :model="billAddData" ref="form" :rules="rules"> <el-form v-if="dialogBillAdd" :model="billAddData" ref="form" :rules="rules">
<el-form-item label="预约提货量" prop="preDeliveryQuantity"> <el-form-item label="预约提货量" prop="preDeliveryQuantity">
<el-input v-model="billAddData.preDeliveryQuantity"></el-input>/ <el-input v-model="billAddData.preDeliveryQuantity"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="提货人" prop="driverName"> <el-form-item label="提货人" prop="driverName">
<el-input v-model="billAddData.driverName"></el-input> <el-input v-model="billAddData.driverName"></el-input>

@ -87,7 +87,7 @@
></el-input> ></el-input>
/ /
</el-form-item> </el-form-item>
<el-form-item label="预约提货量"> <el-form-item prop="preQuantity" label="预约提货量">
<el-input <el-input
maxlength="50" maxlength="50"
v-model="form.preQuantity" v-model="form.preQuantity"
@ -155,6 +155,13 @@ export default {
if (this.form.refineryId) callback(); if (this.form.refineryId) callback();
else callback("请选择炼厂"); else callback("请选择炼厂");
}; };
var validatePass = (rule, value, callback) => {
if (!Boolean(Number(value))) {
callback(new Error('预约提货量不能为空或零'));
} else {
callback();
}
};
return { return {
customList: [], customList: [],
form: { form: {
@ -191,6 +198,9 @@ export default {
enableMark: [ enableMark: [
{ required: true, message: "请选择启用状态", trigger: "change" }, { required: true, message: "请选择启用状态", trigger: "change" },
], ],
preQuantity:[
{ required: true, validator:validatePass, trigger: "blur" }
],
productType: [ productType: [
{ required: true, message: "请选择产品类型", trigger: "change" }, { required: true, message: "请选择产品类型", trigger: "change" },
], ],

@ -174,7 +174,7 @@
<!--新增产品 --> <!--新增产品 -->
<add :controlWindows="controlWindows" @closeWindow="search" /> <add :controlWindows="controlWindows" @closeWindow="search" />
<!-- 下单 --> <!-- 下单 -->
<create :controlWindows="controlWindows" @closeWindow="search" /> <create :controlWindows="controlWindows" @closeWindow="search" />
<!-- 调价记录 --> <!-- 调价记录 -->
<record :controlWindows="controlWindows" /> <record :controlWindows="controlWindows" />
<!-- 批量 --> <!-- 批量 -->

@ -110,7 +110,7 @@
<el-dialog :close-on-click-modal="false" :append-to-body="true" title="提货单信息" width="400px" :visible.sync="dialogBillAdd"> <el-dialog :close-on-click-modal="false" :append-to-body="true" title="提货单信息" width="400px" :visible.sync="dialogBillAdd">
<el-form v-if="dialogBillAdd" :model="billAddData" ref="form" :rules="rules"> <el-form v-if="dialogBillAdd" :model="billAddData" ref="form" :rules="rules">
<el-form-item label="预约提货量" prop="preDeliveryQuantity"> <el-form-item label="预约提货量" prop="preDeliveryQuantity">
<el-input v-model="billAddData.preDeliveryQuantity"></el-input>/ <el-input v-model="billAddData.preDeliveryQuantity"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="提货人" prop="driverName"> <el-form-item label="提货人" prop="driverName">
<el-input v-model="billAddData.driverName"></el-input> <el-input v-model="billAddData.driverName"></el-input>

Loading…
Cancel
Save