|
...
|
...
|
@@ -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
|
...
|
...
|
|