|
@@ -56,9 +56,8 @@
|
|
|
style="width: 100%"
|
|
|
></crop-select>
|
|
|
<el-select v-else-if="item.prop === 'storageId'" style="width: 100%" :disabled="receiptDisable || viewDisabled" v-model="form[item.prop]" size="small" placeholder="请选择" clearable filterable>
|
|
|
- <el-option v-for="(item,index) in storageIdDic" :key="index" :label="item.cname" :value="item.id"></el-option>
|
|
|
+ <el-option v-for="(item,index) in storageIdDic" :key="index" :label="item.contactsData " :value="item.id"></el-option>
|
|
|
</el-select>
|
|
|
-<!-- <warehouse-select v-else-if="item.prop === 'storageId'" v-model="form[item.prop]" @change="warehouseChange" :configuration="configuration" />-->
|
|
|
<el-input type="textarea" v-else-if="(item.prop === 'deliveryRemarks')" v-model="form[item.prop]" :disabled="receiptDisable || viewDisabled" size="small" autocomplete="off" placeholder="请输入"></el-input>
|
|
|
<el-input v-else v-model="form[item.prop]" size="small" :disabled="item.disabled?true:false || receiptDisable || viewDisabled" placeholder="请输入" autocomplete="off"></el-input>
|
|
|
</el-form-item>
|
|
@@ -492,17 +491,7 @@ export default {
|
|
|
this.buttonLoading = true;
|
|
|
let id = this.detailData.id.replace(/\"/g, "")
|
|
|
detailReceiptList(id).then(res => {
|
|
|
- this.form = res.data.data;
|
|
|
- this.oldForm = Object.assign({},res.data.data);
|
|
|
- this.receiptDisable = res.data.data.deliveryStatus === "已收货" ? true :false
|
|
|
- if(this.form.deliveryItemsList){
|
|
|
- this.contactsData = this.form.deliveryItemsList
|
|
|
- this.oldContactsData = this.deepClone(this.form.deliveryItemsList)
|
|
|
- }
|
|
|
- if(this.form.deliveryFilesList){
|
|
|
- this.upLoadData = this.form.deliveryFilesList
|
|
|
- this.oldUpLoadData = this.deepClone(this.form.deliveryFilesList)
|
|
|
- }
|
|
|
+ this.afterData(res.data.data)
|
|
|
}).finally(()=>{
|
|
|
this.buttonLoading = false;
|
|
|
})
|
|
@@ -531,6 +520,7 @@ export default {
|
|
|
// BQ : _.divide(item.billWeight, item.orderQuantity),
|
|
|
// IQ : _.divide(item.invoiceWeight, item.orderQuantity)
|
|
|
// }
|
|
|
+ console.log(item)
|
|
|
delete item.id
|
|
|
this.$refs.crudContact.rowCellAdd(item);
|
|
|
this.$refs.crudContact.rowCell(item,this.contactsData.length - 1)
|
|
@@ -539,7 +529,6 @@ export default {
|
|
|
this.$set(this.form,'saleman',res.data.data.salesName)
|
|
|
this.$set(this.form,'corpId',res.data.data.corpsName[0].id)
|
|
|
this.$set(this.form,'orgOrderNo', res.data.data.orgOrderNo)
|
|
|
- this.$set(this.configuration,'dicData', res.data.data.corpsName)
|
|
|
this.totalChange(); //调用合计 算出重量
|
|
|
}).finally(()=>{
|
|
|
this.buttonLoading = false;
|
|
@@ -717,18 +706,7 @@ export default {
|
|
|
if(res.data.success){
|
|
|
this.$message.success("保存成功!")
|
|
|
detailReceiptList(res.data.data.id).then(res => {
|
|
|
- this.form = res.data.data;
|
|
|
- this.oldForm = Object.assign({},res.data.data);
|
|
|
- this.receiptDisable = res.data.data.deliveryStatus === "已收货" ? true :false
|
|
|
- this.configuration.dicData = this.form.corpName
|
|
|
- if(this.form.deliveryItemsList){
|
|
|
- this.contactsData = this.form.deliveryItemsList
|
|
|
- this.oldContactsData = this.deepClone(this.form.deliveryItemsList)
|
|
|
- }
|
|
|
- if(this.form.deliveryFilesList){
|
|
|
- this.upLoadData = this.form.deliveryFilesList
|
|
|
- this.oldUpLoadData = this.deepClone(this.form.deliveryFilesList)
|
|
|
- }
|
|
|
+ this.afterData(res.data.data)
|
|
|
})
|
|
|
}
|
|
|
}).finally(()=>{
|
|
@@ -766,18 +744,7 @@ export default {
|
|
|
confirmReceipt(this.form).then(res =>{
|
|
|
if(res.data.success){
|
|
|
this.$message.success("收货成功!")
|
|
|
- this.form = res.data.data;
|
|
|
- this.oldForm = Object.assign({},res.data.data);
|
|
|
- this.receiptDisable = res.data.data.deliveryStatus === "已收货" ? true :false
|
|
|
- this.configuration.dicData = this.form.corpName
|
|
|
- if(this.form.deliveryItemsList){
|
|
|
- this.contactsData = this.form.deliveryItemsList
|
|
|
- this.oldContactsData = this.deepClone(this.form.deliveryItemsList)
|
|
|
- }
|
|
|
- if(this.form.deliveryFilesList){
|
|
|
- this.upLoadData = this.form.deliveryFilesList
|
|
|
- this.oldUpLoadData = this.deepClone(this.form.deliveryFilesList)
|
|
|
- }
|
|
|
+ this.afterData(res.data.data)
|
|
|
}
|
|
|
})
|
|
|
}).finally(()=>{
|
|
@@ -794,18 +761,7 @@ export default {
|
|
|
repealReceipt(this.form).then(res =>{
|
|
|
if(res.data.success){
|
|
|
this.$message.success("撤销成功!")
|
|
|
- this.form = res.data.data;
|
|
|
- this.oldForm = Object.assign({},res.data.data);
|
|
|
- this.receiptDisable = res.data.data.deliveryStatus === "已收货" ? true :false
|
|
|
- this.configuration.dicData = this.form.corpName
|
|
|
- if(this.form.deliveryItemsList){
|
|
|
- this.contactsData = this.form.deliveryItemsList
|
|
|
- this.oldContactsData = this.deepClone(this.form.deliveryItemsList)
|
|
|
- }
|
|
|
- if(this.form.deliveryFilesList){
|
|
|
- this.upLoadData = this.form.deliveryFilesList
|
|
|
- this.oldUpLoadData = this.deepClone(this.form.deliveryFilesList)
|
|
|
- }
|
|
|
+ this.afterData(res.data.data)
|
|
|
}
|
|
|
})
|
|
|
}).finally(()=>{
|
|
@@ -815,6 +771,19 @@ export default {
|
|
|
this.buttonLoading = false;
|
|
|
}
|
|
|
},
|
|
|
+ afterData(data){
|
|
|
+ this.form = data;
|
|
|
+ this.oldForm = Object.assign({},data);
|
|
|
+ this.receiptDisable = data.deliveryStatus === "已收货" ? true :false
|
|
|
+ if(data.deliveryItemsList){
|
|
|
+ this.contactsData = data.deliveryItemsList
|
|
|
+ this.oldContactsData = this.deepClone(data.deliveryItemsList)
|
|
|
+ }
|
|
|
+ if(data.deliveryFilesList){
|
|
|
+ this.upLoadData = data.deliveryFilesList
|
|
|
+ this.oldUpLoadData = this.deepClone(data.deliveryFilesList)
|
|
|
+ }
|
|
|
+ },
|
|
|
//导入采购明细
|
|
|
importProMent(list){
|
|
|
list.forEach((item,index) =>{
|