|
@@ -24,7 +24,7 @@
|
|
|
</el-button>
|
|
|
<el-dropdown-menu slot="dropdown">
|
|
|
<el-dropdown-item :disabled="browse" @click.native="pleaseCheck">请核数据</el-dropdown-item>
|
|
|
- <el-dropdown-item v-if="false">审核进度</el-dropdown-item>
|
|
|
+ <el-dropdown-item v-if="form.status > 0" @click.native="checkScheduleDialog = true,checkId=form.id">审核进度</el-dropdown-item>
|
|
|
<el-dropdown-item v-if="false">撤销请核</el-dropdown-item>
|
|
|
</el-dropdown-menu>
|
|
|
</el-dropdown>
|
|
@@ -60,7 +60,7 @@
|
|
|
</el-button>
|
|
|
<el-dropdown-menu slot="dropdown">
|
|
|
<el-dropdown-item
|
|
|
- :disabled="detailData.seeDisabled"
|
|
|
+ :disabled="detailData.seeDisabled || form.status == 3"
|
|
|
@click.native="saveSell">生成采购
|
|
|
</el-dropdown-item>
|
|
|
<el-dropdown-item
|
|
@@ -78,6 +78,14 @@
|
|
|
@click="editCustomer(false)"
|
|
|
>保 存
|
|
|
</el-button>
|
|
|
+ <div v-if="checkDisabled" style="float: right;margin-left: 8px">
|
|
|
+ <el-button type="primary"
|
|
|
+ size="small"
|
|
|
+ class="el-button--small-yh"
|
|
|
+ @click.stop="openCheckDialog">
|
|
|
+ 审批
|
|
|
+ </el-button>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="customer-main">
|
|
@@ -286,8 +294,8 @@
|
|
|
<el-option
|
|
|
v-for="(item, index) in salesPriceOtion"
|
|
|
:key="index"
|
|
|
- :label="item.salesPrice"
|
|
|
- :value="item.salesPrice"></el-option>
|
|
|
+ :label="item.salePrice"
|
|
|
+ :value="item.salePrice"></el-option>
|
|
|
</el-select>
|
|
|
<span v-else>{{ row.price }}</span>
|
|
|
</template>
|
|
@@ -735,6 +743,43 @@
|
|
|
>
|
|
|
</bill-application>
|
|
|
</el-dialog>
|
|
|
+ <el-dialog
|
|
|
+ append-to-body
|
|
|
+ title="审批"
|
|
|
+ class="el-dialogDeep"
|
|
|
+ :visible.sync="checkDialog"
|
|
|
+ width="50%"
|
|
|
+ :close-on-click-modal="false"
|
|
|
+ :destroy-on-close="true"
|
|
|
+ :close-on-press-escape="false"
|
|
|
+ v-dialog-drag
|
|
|
+ >
|
|
|
+ <check
|
|
|
+ :checkData="checkData"
|
|
|
+ :checkDetail="false"
|
|
|
+ :idList="[]"
|
|
|
+ @choceCheckFun="choceCheckFun"
|
|
|
+ >
|
|
|
+ </check>
|
|
|
+ </el-dialog>
|
|
|
+ <el-dialog
|
|
|
+ append-to-body
|
|
|
+ title="审批进度"
|
|
|
+ class="el-dialogDeep"
|
|
|
+ :visible.sync="checkScheduleDialog"
|
|
|
+ width="40%"
|
|
|
+ :close-on-click-modal="false"
|
|
|
+ :destroy-on-close="true"
|
|
|
+ :close-on-press-escape="false"
|
|
|
+ v-dialog-drag
|
|
|
+ >
|
|
|
+ <check-schedule
|
|
|
+ :checkId="checkId"
|
|
|
+ :batchNo="batchNo"
|
|
|
+ @choceScheduleFun="choceScheduleFun"
|
|
|
+ >
|
|
|
+ </check-schedule>
|
|
|
+ </el-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -793,6 +838,8 @@ import {
|
|
|
} from "@/util/validate";
|
|
|
import financialAccount from "../../../components/finance/financialAccount";
|
|
|
import { gainUser } from "@/api/basicData/customerInquiry";
|
|
|
+import check from "@/components/check/check";
|
|
|
+import checkSchedule from "@/components/check/checkSchedule";
|
|
|
|
|
|
export default {
|
|
|
name: "detailsPage",
|
|
@@ -807,7 +854,9 @@ export default {
|
|
|
reportDialog,
|
|
|
feeInfo,
|
|
|
billApplication,
|
|
|
- financialAccount
|
|
|
+ financialAccount,
|
|
|
+ check,
|
|
|
+ checkSchedule,
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
@@ -1522,6 +1571,12 @@ export default {
|
|
|
browse: false,
|
|
|
roleName: '',
|
|
|
userList: [],
|
|
|
+ checkDisabled: false,
|
|
|
+ checkData: {},
|
|
|
+ checkDialog: false,
|
|
|
+ checkScheduleDialog: false,
|
|
|
+ checkId: '',
|
|
|
+ batchNo:'',
|
|
|
}
|
|
|
},
|
|
|
mounted() {
|
|
@@ -1563,9 +1618,12 @@ export default {
|
|
|
if (this.detailData.id) {
|
|
|
this.queryData(this.detailData.id)
|
|
|
}
|
|
|
+ if (this.detailData.check) {
|
|
|
+ this.checkDisabled = true
|
|
|
+ this.batchNo = this.detailData.check.batchNo
|
|
|
+ }
|
|
|
gainUser().then(res => {
|
|
|
this.userList = res.data.data;
|
|
|
- console.log(this.userList)
|
|
|
});
|
|
|
if (this.detailData.seeDisabled) {
|
|
|
// this.bankOfDeposit.column.forEach(item => {
|
|
@@ -1877,7 +1935,7 @@ export default {
|
|
|
res.data.forEach(item => {
|
|
|
getMarketPrice({code: item.code, isFreight: this.form.isFreight, isLabel: this.form.isLabel}).then(response => {
|
|
|
if (response.data.data.length > 0) {
|
|
|
- this.$set(item, 'price', response.data.data[0].salesPrice)
|
|
|
+ this.$set(item, 'price', response.data.data[0].salePrice)
|
|
|
} else {
|
|
|
this.$set(item, 'price', '0')
|
|
|
}
|
|
@@ -2041,6 +2099,7 @@ export default {
|
|
|
tradeType: 'GN',
|
|
|
optionType: 'GN',
|
|
|
chargeMember: this.form.chargeMember,
|
|
|
+ amount: this.form.orderAmount
|
|
|
}
|
|
|
if(bool){ //申请货款
|
|
|
this.billData.srcId = -1
|
|
@@ -2216,7 +2275,7 @@ export default {
|
|
|
for (let item in this.goodsListSave) {
|
|
|
getMarketPrice({code: this.goodsListSave[item].code, isFreight: this.form.isFreight, isLabel: this.form.isLabel}).then(res => {
|
|
|
if (res.data.data.length > 0) {
|
|
|
- this.$set(this.goodsListSave[item], 'price', res.data.data[0].salesPrice)
|
|
|
+ this.$set(this.goodsListSave[item], 'price', res.data.data[0].salePrice)
|
|
|
} else {
|
|
|
this.$set(this.goodsListSave[item], 'price', '0')
|
|
|
}
|
|
@@ -2280,7 +2339,7 @@ export default {
|
|
|
for (let item=0;item<this.tableData.length;item++) {
|
|
|
getMarketPrice({code: this.tableData[item].code, isFreight: this.form.isFreight, isLabel: this.form.isLabel}).then(res => {
|
|
|
if (res.data.data.length > 0) {
|
|
|
- this.$set(this.tableData[item], 'price', res.data.data[0].salesPrice)
|
|
|
+ this.$set(this.tableData[item], 'price', res.data.data[0].salePrice)
|
|
|
} else {
|
|
|
this.$set(this.tableData[item], 'price', '0')
|
|
|
}
|
|
@@ -2408,7 +2467,7 @@ export default {
|
|
|
selectionChangePolicyTwo(list) {
|
|
|
this.policyDataTwo = list
|
|
|
// this.policyDataTwo.forEach(item => {
|
|
|
- // this.$set(item, 'price', item.salesPrice)
|
|
|
+ // this.$set(item, 'price', item.salePrice)
|
|
|
// })
|
|
|
if (this.policyDataTwo.length > 0) {
|
|
|
this.optionPolicy.selection = false
|
|
@@ -2430,7 +2489,7 @@ export default {
|
|
|
if (!list[item].specialOffer) {
|
|
|
getMarketPrice({code: list[item].code, isFreight: this.form.isFreight, isLabel: this.form.isLabel}).then(response => {
|
|
|
if (response.data.data.length > 0) {
|
|
|
- this.$set(list[item], 'price', response.data.data[0].salesPrice)
|
|
|
+ this.$set(list[item], 'price', response.data.data[0].salePrice)
|
|
|
} else {
|
|
|
this.$set(list[item], 'price', '0')
|
|
|
}
|
|
@@ -2439,16 +2498,16 @@ export default {
|
|
|
this.$set(list[item], 'price', list[item].specialOffer)
|
|
|
}
|
|
|
} else {
|
|
|
- if (!list[item].salesPrice) {
|
|
|
+ if (!list[item].salePrice) {
|
|
|
getMarketPrice({code: list[item].code, isFreight: this.form.isFreight, isLabel: this.form.isLabel}).then(response => {
|
|
|
if (response.data.data.length > 0) {
|
|
|
- this.$set(list[item], 'price', response.data.data[0].salesPrice)
|
|
|
+ this.$set(list[item], 'price', response.data.data[0].salePrice)
|
|
|
} else {
|
|
|
this.$set(list[item], 'price', '0')
|
|
|
}
|
|
|
})
|
|
|
} else {
|
|
|
- this.$set(list[item], 'price', list[item].salesPrice)
|
|
|
+ this.$set(list[item], 'price', list[item].salePrice)
|
|
|
}
|
|
|
this.$set(buyFree[item], 'price', '0')
|
|
|
this.$set(buyFree[item], 'orderQuantity', list[item].salesVolume)
|
|
@@ -3184,6 +3243,18 @@ export default {
|
|
|
return true; //没有动过数据
|
|
|
}
|
|
|
},
|
|
|
+ //打开审核
|
|
|
+ openCheckDialog(){
|
|
|
+ this.checkData = this.detailData.check
|
|
|
+ this.checkDialog = true;
|
|
|
+ },
|
|
|
+ //关闭审核
|
|
|
+ choceCheckFun(){
|
|
|
+ this.checkDialog = false;
|
|
|
+ },
|
|
|
+ choceScheduleFun(){
|
|
|
+ this.checkScheduleDialog = false
|
|
|
+ },
|
|
|
},
|
|
|
}
|
|
|
</script>
|