|
@@ -116,6 +116,14 @@
|
|
<ws-input :disabled="recheck" v-model="weighingList.storageNumber" placeholder="选填,1-10个字符"
|
|
<ws-input :disabled="recheck" v-model="weighingList.storageNumber" placeholder="选填,1-10个字符"
|
|
maxlength="10" size="small" />
|
|
maxlength="10" size="small" />
|
|
</ws-form-item>
|
|
</ws-form-item>
|
|
|
|
+ <ws-form-item label="价格" span="1" prop="contractPrice">
|
|
|
|
+ <ws-input :disabled="recheck" v-model="weighingList.contractPrice" placeholder="请输入价格(元/每吨)"
|
|
|
|
+ maxlength="10" size="small" />
|
|
|
|
+ </ws-form-item>
|
|
|
|
+ <ws-form-item v-if="tpyeNo == 2" label="备注" span="1" prop="customer">
|
|
|
|
+ <ws-input :disabled="recheck" v-model="weighingList.customer" placeholder="请输入备注"
|
|
|
|
+ maxlength="10" size="small" />
|
|
|
|
+ </ws-form-item>
|
|
<ws-form-item v-if="tpyeNo == 1" label="出库类型" span="1">
|
|
<ws-form-item v-if="tpyeNo == 1" label="出库类型" span="1">
|
|
<ws-input v-model="weighingList.inOutType" class="right-bottom" :disabled="isSelectType"
|
|
<ws-input v-model="weighingList.inOutType" class="right-bottom" :disabled="isSelectType"
|
|
placeholder="暂无" />
|
|
placeholder="暂无" />
|
|
@@ -921,6 +929,12 @@
|
|
// return
|
|
// return
|
|
// }
|
|
// }
|
|
// }
|
|
// }
|
|
|
|
+ // for (var i = 0; i < this.outContractNo.length; i++) {
|
|
|
|
+ // if (this.outContractNo[i].contractNo == this.weighingList.contractNo){
|
|
|
|
+ // this.$set(this.weighingList,'customer',this.outContractNo[i].buyer)
|
|
|
|
+ // }
|
|
|
|
+ // }debugger
|
|
|
|
+ // console.log(this.weighingList.customer)
|
|
this.weighingList.carNumber = this.weighingList.carNo
|
|
this.weighingList.carNumber = this.weighingList.carNo
|
|
if (this.types == 1 || this.types == 2) {
|
|
if (this.types == 1 || this.types == 2) {
|
|
if (!this.weighingList.contractNo) {
|
|
if (!this.weighingList.contractNo) {
|
|
@@ -944,6 +958,13 @@
|
|
})
|
|
})
|
|
return
|
|
return
|
|
}
|
|
}
|
|
|
|
+ if (!this.weighingList.contractPrice) {
|
|
|
|
+ this.$message({
|
|
|
|
+ message: '价格不能为空',
|
|
|
|
+ type: 'warning',
|
|
|
|
+ })
|
|
|
|
+ return
|
|
|
|
+ }
|
|
if (
|
|
if (
|
|
this.weighingList.storageNumber.length < 1 ||
|
|
this.weighingList.storageNumber.length < 1 ||
|
|
this.weighingList.storageNumber.length > 10
|
|
this.weighingList.storageNumber.length > 10
|
|
@@ -1647,6 +1668,9 @@
|
|
} else {
|
|
} else {
|
|
this.weighingList.type = '干粮'
|
|
this.weighingList.type = '干粮'
|
|
}
|
|
}
|
|
|
|
+ // this.weighingList.contractPrice = this.outContractNo[i].unitContractPrice
|
|
|
|
+ this.$set(this.weighingList,'contractPrice',this.outContractNo[i].unitContractPrice)
|
|
|
|
+ this.$set(this.weighingList,'customer',this.outContractNo[i].buyer)
|
|
this.weighingList.goodsNameKey = this.outContractNo[i].goodsNameKey
|
|
this.weighingList.goodsNameKey = this.outContractNo[i].goodsNameKey
|
|
this.weighingList.grade = this.outContractNo[i].grade
|
|
this.weighingList.grade = this.outContractNo[i].grade
|
|
this.weighingList.inOutType = this.outContractNo[i].inOutType
|
|
this.weighingList.inOutType = this.outContractNo[i].inOutType
|