|
@@ -216,8 +216,8 @@ export default {
|
|
|
value: 'id'
|
|
|
},
|
|
|
cascader: ['recAddress'],
|
|
|
- click:()=>{
|
|
|
- this.$refs.form.dicInit()
|
|
|
+ click: () => {
|
|
|
+ this.$refs.form.dicInit()
|
|
|
},
|
|
|
change: (data) => {
|
|
|
if (!this.onLoad.id) {
|
|
@@ -227,15 +227,15 @@ export default {
|
|
|
}
|
|
|
if (this.$refs.form.DIC.customerId || !this.onLoad.id) {
|
|
|
getCustom({ id: data.value }).then(res => {
|
|
|
- if(res.data.data){
|
|
|
+ if (res.data.data) {
|
|
|
this.dicUrlWithCustomId = res.data.data.id ? res.data.data.id : ''
|
|
|
- // this.form.storageId ? this.form.storageId : res.data.data.deliveryWarehouseId
|
|
|
- // this.form.storageId = res.data.data.deliveryWarehouseId
|
|
|
- this.form.storageId = this.form.storageId ? this.form.storageId : res.data.data.deliveryWarehouseId
|
|
|
- this.form.contacts = res.data.data.corpsAttnList[0].cname
|
|
|
- this.form.phone = res.data.data.corpsAttnList[0].tel
|
|
|
- this.contactsOption = res.data.data.corpsAddrList
|
|
|
- this.form.recAddress = res.data.data.corpsAddrList[0].belongtoarea + res.data.data.corpsAddrList[0].detailedAddress
|
|
|
+ // this.form.storageId ? this.form.storageId : res.data.data.deliveryWarehouseId
|
|
|
+ // this.form.storageId = res.data.data.deliveryWarehouseId
|
|
|
+ this.form.storageId = this.form.storageId ? this.form.storageId : res.data.data.deliveryWarehouseId
|
|
|
+ this.form.contacts = res.data.data.corpsAttnList[0].cname
|
|
|
+ this.form.phone = res.data.data.corpsAttnList[0].tel
|
|
|
+ this.contactsOption = res.data.data.corpsAddrList
|
|
|
+ this.form.recAddress = res.data.data.corpsAddrList[0].belongtoarea + res.data.data.corpsAddrList[0].detailedAddress
|
|
|
}
|
|
|
})
|
|
|
}
|
|
@@ -377,7 +377,7 @@ export default {
|
|
|
index: true,
|
|
|
showSummary: true,
|
|
|
addBtnText: "添加轮胎",
|
|
|
- updateBtnText:'保存',
|
|
|
+ updateBtnText: '保存',
|
|
|
refreshBtn: false,
|
|
|
dialogDrag: true,
|
|
|
addBtn: false,
|
|
@@ -391,27 +391,27 @@ export default {
|
|
|
dialogWidth: "80%",
|
|
|
summaryText: "合计",
|
|
|
showSummary: true,
|
|
|
- sumColumnList:[{
|
|
|
- name: "goodsNum",
|
|
|
- type: "sum"
|
|
|
- },{
|
|
|
- name: "sendNum",
|
|
|
- type: "sum"
|
|
|
- },{
|
|
|
- name: "profit",
|
|
|
- type: "sum"
|
|
|
- },{
|
|
|
- name: "subTotalMoney",
|
|
|
- type: "sum"
|
|
|
- },{
|
|
|
- name: "thisAmount",
|
|
|
- type: "sum"
|
|
|
- },{
|
|
|
- name: "costprie",
|
|
|
- type: "sum"
|
|
|
- },{
|
|
|
- name: "grossProfit",
|
|
|
- type: "sum"
|
|
|
+ sumColumnList: [{
|
|
|
+ name: "goodsNum",
|
|
|
+ type: "sum"
|
|
|
+ }, {
|
|
|
+ name: "sendNum",
|
|
|
+ type: "sum"
|
|
|
+ }, {
|
|
|
+ name: "profit",
|
|
|
+ type: "sum"
|
|
|
+ }, {
|
|
|
+ name: "subTotalMoney",
|
|
|
+ type: "sum"
|
|
|
+ }, {
|
|
|
+ name: "thisAmount",
|
|
|
+ type: "sum"
|
|
|
+ }, {
|
|
|
+ name: "costprie",
|
|
|
+ type: "sum"
|
|
|
+ }, {
|
|
|
+ name: "grossProfit",
|
|
|
+ type: "sum"
|
|
|
}],
|
|
|
column: [{
|
|
|
label: '轮胎名称',
|
|
@@ -798,8 +798,8 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
this.isSaveBtn = true;
|
|
|
- this.isDisabledTask = true;
|
|
|
- this.viewDisabled = true;
|
|
|
+ this.isDisabledTask = true;
|
|
|
+ this.viewDisabled = true;
|
|
|
// this.$set(this.optionContactsBack, "addBtn", false)
|
|
|
this['optionContacts'] = this['optionContactsBack'];
|
|
|
this.delColumnData(this.getColumnName('269.1'), this['optionContactsBack']);
|
|
@@ -812,7 +812,7 @@ export default {
|
|
|
this.viewDisabled = false;
|
|
|
this.form.businessSource = '内部销售'
|
|
|
}
|
|
|
- console.log('this.detailData.check',this.detailData.check);
|
|
|
+ console.log('this.detailData.check', this.detailData.check);
|
|
|
if (this.detailData.check) {
|
|
|
this.isExamineBtn = false
|
|
|
// this.batchNo = this.detailData.check.batchNo
|
|
@@ -830,7 +830,7 @@ export default {
|
|
|
},
|
|
|
'form.storageId'(newStorageId, oldStorageId) {
|
|
|
goodsListXs(this.dicUrlWithCustomId, this.form.storageId ? this.form.storageId : '').then(res => {
|
|
|
- console.log(res.data.data,'2');
|
|
|
+ console.log(res.data.data, '2');
|
|
|
|
|
|
this.findObject(this.optionContactsBack.column, "goodsId").dicData = res.data.data
|
|
|
})
|
|
@@ -911,12 +911,12 @@ export default {
|
|
|
goodsListXs(this.dicUrlWithCustomId, this.form.storageId ? this.form.storageId : '').then(res => {
|
|
|
this.findObject(this.optionContactsBack.column, "goodsId").dicData = res.data.data
|
|
|
})
|
|
|
- if(this.form.status == '已发货'){
|
|
|
- this.viewDisabled =false
|
|
|
+ if (this.form.status == '已发货') {
|
|
|
+ this.viewDisabled = false
|
|
|
return
|
|
|
}
|
|
|
- if(this.form.status == '退款中'){
|
|
|
- this.viewDisabled =false
|
|
|
+ if (this.form.status == '退款中') {
|
|
|
+ this.viewDisabled = false
|
|
|
this.isRevocationRequest = true
|
|
|
return
|
|
|
}
|
|
@@ -930,7 +930,7 @@ export default {
|
|
|
// }
|
|
|
// })
|
|
|
}
|
|
|
- if(this.form.status == '退款请核'){
|
|
|
+ if (this.form.status == '退款请核') {
|
|
|
this.viewDisabled = false
|
|
|
this.isAddBtn = true
|
|
|
return
|
|
@@ -960,10 +960,10 @@ export default {
|
|
|
this.isAdd = false
|
|
|
if (this.form.businessSource == "外部销售") {
|
|
|
this.optionForm.column.forEach(its => {
|
|
|
- if (its.prop == 'contacts' || its.prop == 'phone'||its.prop == 'recAddress') {
|
|
|
- this.$set(its, 'disabled', true)
|
|
|
- }
|
|
|
- })
|
|
|
+ if (its.prop == 'contacts' || its.prop == 'phone' || its.prop == 'recAddress') {
|
|
|
+ this.$set(its, 'disabled', true)
|
|
|
+ }
|
|
|
+ })
|
|
|
if (this.form.status == '待发货') {
|
|
|
this.isSaveBtn = false;
|
|
|
this.isDisabledTask = false;
|
|
@@ -993,7 +993,7 @@ export default {
|
|
|
//不能录入不能删除
|
|
|
this.isDisabled = true
|
|
|
this.isAdd = false
|
|
|
- this.isAddBtn= true
|
|
|
+ this.isAddBtn = true
|
|
|
this.$set(this.form, 'shipType', '物流')
|
|
|
this.$set(this.form, 'receivableType', '网络支付')
|
|
|
this.optionContactsBack.column.forEach(item => {
|
|
@@ -1124,7 +1124,7 @@ export default {
|
|
|
// this.isDisabledTask = true
|
|
|
// }
|
|
|
// })
|
|
|
-
|
|
|
+
|
|
|
loading.close()
|
|
|
}
|
|
|
// this.$set(this.form.orderItemsList,'goodsNum',66)
|
|
@@ -1179,7 +1179,9 @@ export default {
|
|
|
this.isContacts = true
|
|
|
this.$message.success("生成出库任务成功");
|
|
|
this.isApplySettlement = false
|
|
|
-
|
|
|
+ this.isAdd = true
|
|
|
+ this.isDisabled = true
|
|
|
+ this.isAddBtn = true
|
|
|
}).finally(() => {
|
|
|
loading.close();
|
|
|
});
|
|
@@ -1225,6 +1227,15 @@ export default {
|
|
|
this.$message.success("撤销出库成功");
|
|
|
this.refresh(res.data.data.id)
|
|
|
this.isApplySettlement = false
|
|
|
+ this.$set(this.optionForm, 'disabled', true)
|
|
|
+ this.$set(this.optionContactsBack, 'disabled', true)
|
|
|
+ this.isContacts = true
|
|
|
+ this.isDisabled = true
|
|
|
+ //添加删除按钮禁用
|
|
|
+ this.isAdd = true
|
|
|
+ if (this.form.businessSource == "外部销售") {
|
|
|
+
|
|
|
+ }
|
|
|
loading.close();
|
|
|
}).catch((err) => {
|
|
|
console.log(err);
|
|
@@ -1364,8 +1375,8 @@ export default {
|
|
|
this.isSaveBtn = true;
|
|
|
this.isDisabledTask = true;
|
|
|
this.viewDisabled = true;
|
|
|
- }
|
|
|
- if(this.form.status === '已发货' ){
|
|
|
+ }
|
|
|
+ if (this.form.status === '已发货') {
|
|
|
this.isDisabledTask = true;
|
|
|
this.viewDisabled = true;
|
|
|
this.isEditButton = false;
|
|
@@ -1375,7 +1386,7 @@ export default {
|
|
|
// this.isDisabledTask = true;
|
|
|
// this.viewDisabled = true;
|
|
|
// }
|
|
|
-
|
|
|
+
|
|
|
if (this.form.status == '退款中') {
|
|
|
this.isConfirmRefundBtn = false;
|
|
|
}
|
|
@@ -1391,7 +1402,7 @@ export default {
|
|
|
if (this.form.status == '退款请核' || this.form.status == '退款中') {
|
|
|
this.isRevocationRequest = false;
|
|
|
}
|
|
|
- if(this.form.status == '待发货'){
|
|
|
+ if (this.form.status == '待发货') {
|
|
|
this.isApplySettlement = false
|
|
|
}
|
|
|
//成本、毛利对销售角色隐藏
|