|
@@ -80,12 +80,14 @@
|
|
|
v-model="form[item.prop]" :configuration="companyConfiguration"
|
|
|
style="width: 100%"
|
|
|
:disabled="detailData.seeDisabled"
|
|
|
+ typeData="GS"
|
|
|
@returnBack="returnBack"/>
|
|
|
<!-- 生产工厂-->
|
|
|
<selectComponent v-else-if="item.prop === 'productionPlant'"
|
|
|
v-model="form[item.prop]" :configuration="plantConfiguration"
|
|
|
style="width: 100%"
|
|
|
:disabled="detailData.seeDisabled"
|
|
|
+ typeData="GYS"
|
|
|
@getRow="getPlantRow"/>
|
|
|
<el-select v-else-if="item.prop === 'paymentType'" v-model="form[item.prop]" placeholder="请选择" clearable filterable style="width: 100%" size="small" :disabled="detailData.seeDisabled">
|
|
|
<el-option v-for="(item,index) in paymentOption" :key="index" :label="item.dictValue" :value="item.dictValue"></el-option>
|
|
@@ -170,6 +172,7 @@
|
|
|
@row-del="rowDel"
|
|
|
@saveColumn="saveColumn('goods')"
|
|
|
:summary-method="summaryMethod"
|
|
|
+ :table-loading="goodsLoading"
|
|
|
>
|
|
|
<template slot="corpId" slot-scope="{ row, index }">
|
|
|
<customer-dialog
|
|
@@ -1233,6 +1236,8 @@ export default {
|
|
|
// 查询时loading页面
|
|
|
pageLoading: false,
|
|
|
switchDialog: false,
|
|
|
+ // 商品信息表格loading
|
|
|
+ goodsLoading: false,
|
|
|
baseURL: '/api/blade-purchase-sales/orderitems/importPrice',
|
|
|
headers: { "Blade-Auth": 'Bearer ' + getToken()},
|
|
|
}
|
|
@@ -1489,12 +1494,10 @@ export default {
|
|
|
},
|
|
|
//文件上传时
|
|
|
uploading(event, file, fileList) {
|
|
|
- this.pageLoading = true;
|
|
|
- // this.openFullScreen(false, '文件正在解析中');
|
|
|
+ this.openFullScreen(false, '文件正在解析中');
|
|
|
},
|
|
|
importTemplate(res, file) {
|
|
|
- console.log(res)
|
|
|
- this.pageLoading = false
|
|
|
+ this.openFullScreen(true)
|
|
|
let goodsData = []
|
|
|
res.data.forEach(item => {
|
|
|
getMarketPrice({code: item.code}).then(res => {
|
|
@@ -1503,6 +1506,7 @@ export default {
|
|
|
} else {
|
|
|
this.$set(item, 'price', '0')
|
|
|
}
|
|
|
+ this.$set(item, 'amount', (Number(item.price) * Number(item.orderQuantity)).toFixed(2))
|
|
|
})
|
|
|
getPurchasePrice({code: item.code}).then(res => {
|
|
|
if (res.data.data.length > 0) {
|
|
@@ -1972,8 +1976,6 @@ export default {
|
|
|
},
|
|
|
//新增商品信息保存触发
|
|
|
rowSave(row, done, loading) {
|
|
|
- console.log(row)
|
|
|
- console.log(this.contactsData)
|
|
|
// this.contactsData.push(row)
|
|
|
done()
|
|
|
},
|
|
@@ -2152,6 +2154,7 @@ export default {
|
|
|
}
|
|
|
let packFee;
|
|
|
if (this.form.packageRemarks) {
|
|
|
+ console.log(this.advantageProjectData)
|
|
|
packFee = this.advantageProjectData.findIndex(item => item.feeName == '包装费')
|
|
|
}
|
|
|
if (packFee == -1) {
|