|
@@ -113,7 +113,13 @@
|
|
<a-input disabled v-model="editForm.batchNumber" placeholder="请输入"></a-input>
|
|
<a-input disabled v-model="editForm.batchNumber" placeholder="请输入"></a-input>
|
|
</a-form-model-item>
|
|
</a-form-model-item>
|
|
<a-form-model-item label="实际库存" :labelCol="{ span: 4 }" :wrapperCol="{ span: 14 }" prop="newInventory">
|
|
<a-form-model-item label="实际库存" :labelCol="{ span: 4 }" :wrapperCol="{ span: 14 }" prop="newInventory">
|
|
- <a-input-number placeholder="请输入" v-model="editForm.newInventory" @change="handleChangeNewInventory" :min="0" style="width:100%" />
|
|
|
|
|
|
+ <a-input-number
|
|
|
|
+ placeholder="请输入"
|
|
|
|
+ v-model="editForm.newInventory"
|
|
|
|
+ @change="handleChangeNewInventory"
|
|
|
|
+ :min="0"
|
|
|
|
+ style="width: 100%"
|
|
|
|
+ />
|
|
</a-form-model-item>
|
|
</a-form-model-item>
|
|
<a-form-model-item label="实际仓位货架" :labelCol="{ span: 4 }" :wrapperCol="{ span: 14 }" prop="newPosition">
|
|
<a-form-model-item label="实际仓位货架" :labelCol="{ span: 4 }" :wrapperCol="{ span: 14 }" prop="newPosition">
|
|
<a-input v-model="editForm.newPosition" placeholder="请输入"></a-input>
|
|
<a-input v-model="editForm.newPosition" placeholder="请输入"></a-input>
|
|
@@ -123,14 +129,12 @@
|
|
差异数量
|
|
差异数量
|
|
<span>
|
|
<span>
|
|
<a-tooltip>
|
|
<a-tooltip>
|
|
- <template slot="title">
|
|
|
|
- 盘盈是正数,盘亏是负数
|
|
|
|
- </template>
|
|
|
|
|
|
+ <template slot="title"> 盘盈是正数,盘亏是负数 </template>
|
|
<a-icon type="question-circle" />
|
|
<a-icon type="question-circle" />
|
|
</a-tooltip>
|
|
</a-tooltip>
|
|
</span>
|
|
</span>
|
|
</template>
|
|
</template>
|
|
- <span :class="editForm.differenceCount!==0?'red-num':''">{{editForm.differenceCount}}</span>
|
|
|
|
|
|
+ <span :class="editForm.differenceCount !== 0 ? 'red-num' : ''">{{ editForm.differenceCount }}</span>
|
|
</a-form-model-item>
|
|
</a-form-model-item>
|
|
<a-form-model-item label="差异原因" :labelCol="{ span: 4 }" :wrapperCol="{ span: 14 }" prop="differenceReason">
|
|
<a-form-model-item label="差异原因" :labelCol="{ span: 4 }" :wrapperCol="{ span: 14 }" prop="differenceReason">
|
|
<a-input v-model="editForm.differenceReason" placeholder="请输入"></a-input>
|
|
<a-input v-model="editForm.differenceReason" placeholder="请输入"></a-input>
|
|
@@ -232,12 +236,12 @@ export default {
|
|
},
|
|
},
|
|
editForm: {},
|
|
editForm: {},
|
|
editVisible: false,
|
|
editVisible: false,
|
|
- editFormRules:{
|
|
|
|
- newInventory:[
|
|
|
|
|
|
+ editFormRules: {
|
|
|
|
+ newInventory: [
|
|
{ required: true, message: '请输入实际库存' },
|
|
{ required: true, message: '请输入实际库存' },
|
|
- { pattern: /^[0-9]*$/, message: '只能输入数字' }
|
|
|
|
- ]
|
|
|
|
- }
|
|
|
|
|
|
+ { pattern: /^[0-9]*$/, message: '只能输入数字' },
|
|
|
|
+ ],
|
|
|
|
+ },
|
|
}
|
|
}
|
|
},
|
|
},
|
|
watch: {
|
|
watch: {
|
|
@@ -266,10 +270,8 @@ export default {
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
isShowBtn() {
|
|
isShowBtn() {
|
|
- console.log('==================', this.form.taskStatus)
|
|
|
|
-
|
|
|
|
if (this.openType === 'detail') return false
|
|
if (this.openType === 'detail') return false
|
|
- if (this.form.taskStatus !== 1) return false
|
|
|
|
|
|
+ if (this.form.taskStatus > 3) return false
|
|
|
|
|
|
return true
|
|
return true
|
|
},
|
|
},
|
|
@@ -450,16 +452,16 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
|
|
- handleChangeNewInventory(val){
|
|
|
|
- const inventory = this.editForm.inventory? Number(this.editForm.inventory):0
|
|
|
|
|
|
+ handleChangeNewInventory(val) {
|
|
|
|
+ const inventory = this.editForm.inventory ? Number(this.editForm.inventory) : 0
|
|
this.editForm.differenceCount = val - inventory
|
|
this.editForm.differenceCount = val - inventory
|
|
- }
|
|
|
|
|
|
+ },
|
|
},
|
|
},
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|
|
|
|
|
|
<style>
|
|
<style>
|
|
-.red-num{
|
|
|
|
|
|
+.red-num {
|
|
color: #f5222d;
|
|
color: #f5222d;
|
|
}
|
|
}
|
|
</style>
|
|
</style>
|