作者 张晓杰

采购

... ... @@ -34,6 +34,11 @@
</a-form-model-item>
</a-col>
<a-col :span="24">
<a-form-model-item label="型号" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="type">
<a-input v-model="model.type" placeholder="请输入型号" :disabled="model.chooseStatus ==0"></a-input>
</a-form-model-item>
</a-col>
<a-col :span="24">
<a-form-model-item label="数量" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="num">
<a-input-number
v-model="model.num"
... ... @@ -166,7 +171,7 @@ export default {
productName: [{ required: true, message: '请输入品名!' }],
specifications: [{ required: true, message: '请输入规格!' }],
num: [{ required: true, message: '请输入数量!' }],
danwei: [{ required: true, message: '请输入单位!' }],
type: [{ required: true, message: '请输入型号!' }],
wuType: [{ required: true, message: '请输入物料类别!' }],
workOrder: [{ required: true, message: '请输入工作令!' }],
// purpose: [{ required: true, message: '请输入用途!' }],
... ... @@ -213,13 +218,13 @@ export default {
},
methods: {
...mapGetters(['nickname', 'avatar', 'userInfo']),
handleSpChange(type) {
if (type === 'spOne' && this.model.spOne === '同意') {
this.model.noNotes = ''
} else if (type === 'spTwo' && this.model.spTwo === '同意') {
this.model.noNotes = ''
}
},
// handleSpChange(type) {
// if (type === 'spOne' && this.model.spOne === '同意') {
// this.model.noNotes = ''
// } else if (type === 'spTwo' && this.model.spTwo === '同意') {
// this.model.noNotes = ''
// }
// },
add() {
this.edit(this.modelDefault)
this.isBianhaoDisabled = false
... ...
... ... @@ -296,6 +296,7 @@ export default {
}
this.visible = true
},
submitForm() {
const that = this
// 触发表单验证
... ...
... ... @@ -256,7 +256,7 @@ export default {
}
// return
this.model.biddingSqList = this.dataSource
// console.log(this.model)
console.log(this.model)
// return
that.confirmLoading = true;
let httpurl = '';
... ...