|
@@ -60,7 +60,8 @@
|
|
|
<!-- 地址 -->
|
|
|
<el-select v-model="form.recAddress" placeholder="请选择" size="small" style="width:60%" filterable
|
|
|
:disabled=isContacts>
|
|
|
- <el-option v-for="item in recAddressOption" :key="item.id" :label="item.belongtoarea + item.detailedAddress"
|
|
|
+ <el-option v-for="item in recAddressOption" :key="item.id"
|
|
|
+ :label="item.belongtoarea + item.detailedAddress"
|
|
|
:value="item.belongtoarea + item.detailedAddress" />
|
|
|
</el-select>
|
|
|
</template>
|
|
@@ -189,7 +190,7 @@ export default {
|
|
|
isDisabled: false,
|
|
|
isDisabledTask: false,
|
|
|
//地址
|
|
|
- recAddressOption:[],
|
|
|
+ recAddressOption: [],
|
|
|
contactsOption: [],
|
|
|
isContacts: false,
|
|
|
checkData: {},
|
|
@@ -227,8 +228,8 @@ export default {
|
|
|
value: 'id'
|
|
|
},
|
|
|
cascader: ['recAddress'],
|
|
|
- click:()=>{
|
|
|
- this.$refs.form.dicInit()
|
|
|
+ click: () => {
|
|
|
+ this.$refs.form.dicInit()
|
|
|
},
|
|
|
change: (data) => {
|
|
|
if (!this.onLoad.id) {
|
|
@@ -266,7 +267,7 @@ export default {
|
|
|
// }
|
|
|
// }
|
|
|
},
|
|
|
- dicUrl: '/api/blade-sales-part/corpsDesc/listAll?cname={{key}}&corpType=GYS&enableOrNot=0',
|
|
|
+ dicUrl: '/api/blade-sales-part/corpsDesc/listAll?cname={{key}}&corpType=GYS&enableOrNot=1',
|
|
|
rules: [{
|
|
|
required: true,
|
|
|
message: " ",
|
|
@@ -382,6 +383,11 @@ export default {
|
|
|
disabled: true
|
|
|
},
|
|
|
{
|
|
|
+ label: '结算金额',
|
|
|
+ prop: "paymentAmountTl",
|
|
|
+ disabled: true
|
|
|
+ },
|
|
|
+ {
|
|
|
label: '备注',
|
|
|
prop: "remarks",
|
|
|
type: 'textarea',
|
|
@@ -398,7 +404,7 @@ export default {
|
|
|
align: 'center',
|
|
|
index: true,
|
|
|
showSummary: true,
|
|
|
-
|
|
|
+
|
|
|
addBtnText: "添加轮胎",
|
|
|
updateBtnText: '保存',
|
|
|
refreshBtn: false,
|
|
@@ -414,21 +420,21 @@ export default {
|
|
|
dialogWidth: "80%",
|
|
|
summaryText: "合计",
|
|
|
showSummary: true,
|
|
|
- sumColumnList:[{
|
|
|
- name: "goodsNum",
|
|
|
- type: "sum"
|
|
|
- },{
|
|
|
- name: "price",
|
|
|
- type: "sum",
|
|
|
- decimals: 2
|
|
|
- },{
|
|
|
- name: "sendNum",
|
|
|
- type: "sum",
|
|
|
- decimals: 2
|
|
|
- },{
|
|
|
- name: "subTotalMoney",
|
|
|
- type: "sum",
|
|
|
- decimals: 2
|
|
|
+ sumColumnList: [{
|
|
|
+ name: "goodsNum",
|
|
|
+ type: "sum"
|
|
|
+ }, {
|
|
|
+ name: "price",
|
|
|
+ type: "sum",
|
|
|
+ decimals: 2
|
|
|
+ }, {
|
|
|
+ name: "sendNum",
|
|
|
+ type: "sum",
|
|
|
+ decimals: 2
|
|
|
+ }, {
|
|
|
+ name: "subTotalMoney",
|
|
|
+ type: "sum",
|
|
|
+ decimals: 2
|
|
|
}],
|
|
|
column: [{
|
|
|
label: '轮胎名称',
|
|
@@ -444,7 +450,7 @@ export default {
|
|
|
value: 'id'
|
|
|
},
|
|
|
// dicUrl: '/api/blade-sales-part/goodsDesc/goodsListAll?cname={{key}}'
|
|
|
- dicUrl: "/api/blade-sales-part/goodsDesc/goodsListAll?cname={{key}}&enableOrNot=0"
|
|
|
+ dicUrl: "/api/blade-sales-part/goodsDesc/goodsListAll?cname={{key}}&enableOrNot=1"
|
|
|
// dicUrl: "/api/blade-sales-part/goodsDesc/goodsListXs?cname={{key}}"
|
|
|
}, {
|
|
|
label: '数量',
|
|
@@ -850,23 +856,23 @@ export default {
|
|
|
// this.findObject(this.optionContactsBack.column, "goodsId").dicData = res.data.data
|
|
|
// })
|
|
|
// },
|
|
|
- 'form.orderItemsList.length'(newformContacts, oldformContacts) {
|
|
|
- console.log(this.formContacts);
|
|
|
- console.log(this.form.orderItemsList);
|
|
|
- // for (let i = 0; i < this.form.orderItemsList.length - 1; i++) {
|
|
|
- // const currentItem = this.form.orderItemsList[i];
|
|
|
- // const nextItem = this.form.orderItemsList[i + 1];
|
|
|
+ // 'form.orderItemsList.length'(newformContacts, oldformContacts) {
|
|
|
+ // console.log(this.formContacts);
|
|
|
+ // console.log(this.form.orderItemsList);
|
|
|
+ // // for (let i = 0; i < this.form.orderItemsList.length - 1; i++) {
|
|
|
+ // // const currentItem = this.form.orderItemsList[i];
|
|
|
+ // // const nextItem = this.form.orderItemsList[i + 1];
|
|
|
|
|
|
- // if (currentItem.sharedCompanyId !== nextItem.sharedCompanyId) {
|
|
|
- // console.log('不能添加');
|
|
|
- // }
|
|
|
- // }
|
|
|
- if (this.form.orderItemsList.length) {
|
|
|
- this.findObject(this.optionForm.column, 'storageId').disabled = true
|
|
|
- } else {
|
|
|
- this.findObject(this.optionForm.column, 'storageId').disabled = false
|
|
|
- }
|
|
|
- },
|
|
|
+ // // if (currentItem.sharedCompanyId !== nextItem.sharedCompanyId) {
|
|
|
+ // // console.log('不能添加');
|
|
|
+ // // }
|
|
|
+ // // }
|
|
|
+ // if (this.form.orderItemsList.length) {
|
|
|
+ // this.findObject(this.optionForm.column, 'storageId').disabled = true
|
|
|
+ // } else {
|
|
|
+ // this.findObject(this.optionForm.column, 'storageId').disabled = false
|
|
|
+ // }
|
|
|
+ // },
|
|
|
'form.sharedCompanyId'(newSharedCompanyId, oldSharedCompanyId) {
|
|
|
console.log(newSharedCompanyId, oldSharedCompanyId);
|
|
|
if (newSharedCompanyId != oldSharedCompanyId) {
|
|
@@ -1085,7 +1091,8 @@ export default {
|
|
|
// this.$set(this.optionContactsBack, 'disabled', false)
|
|
|
this.$set(this.optionForm, 'disabled', false)
|
|
|
this.$set(this.optionContactsBack, 'disabled', false)
|
|
|
- this.isContacts = true
|
|
|
+
|
|
|
+ this.isContacts = false
|
|
|
//删除按钮
|
|
|
this.isDisabled = false
|
|
|
// this.optionForm.column.forEach(item => {
|
|
@@ -1098,7 +1105,7 @@ export default {
|
|
|
this.isDisabledTask = false;
|
|
|
this.isAddBtn = false;
|
|
|
this.isAdd = false;
|
|
|
- this.isDisabled =false
|
|
|
+ this.isDisabled = false
|
|
|
this.viewDisabled = false;
|
|
|
// this.isDisabled = true
|
|
|
console.log('待确认');
|
|
@@ -1365,9 +1372,13 @@ export default {
|
|
|
this.form = res.data.data
|
|
|
let ordForm = { srcBillNo: this.form.ordNo }
|
|
|
let _this = this
|
|
|
- getList(1, 50, ordForm).then((res) => {
|
|
|
- this.dataList = res.data.data.records ? res.data.data.records : [];
|
|
|
- })
|
|
|
+ this.dataList = res.data.data.paymentRecordsList ? res.data.data.paymentRecordsList : [];
|
|
|
+ // getList(1, 50, ordForm).then((res) => {
|
|
|
+ // this.dataList = res.data.data.records ? res.data.data.records : [];
|
|
|
+ // this.$nextTick(() => {
|
|
|
+ // this.$refs.formContacts.doLayout()
|
|
|
+ // })
|
|
|
+ // })
|
|
|
if (this.form.status !== '录入' && this.form.status !== '退款中' && this.form.status !== '已取消' && this.form.status !== '退款请核' && this.form.status !== '已退款' && this.form.status !== '待确认' && this.form.status !== '待发货') {
|
|
|
console.log(1);
|
|
|
this.isApplySettlement = false;
|
|
@@ -1616,7 +1627,11 @@ export default {
|
|
|
);
|
|
|
},
|
|
|
rowSave(form, done, loading) {
|
|
|
+
|
|
|
+ form.subTotalMoney = form.goodsNum * form.price
|
|
|
+ form.goodsName = form.$goodsId
|
|
|
if (this.isStatus) {
|
|
|
+ console.log(form);
|
|
|
done(form)
|
|
|
} else {
|
|
|
this.$message.error('请选择相同商户的轮胎')
|