|
@@ -15,8 +15,6 @@
|
|
|
:sitem="sitem"
|
|
|
:showBtn="status === '1' && powers.some((item) => item == '082')"
|
|
|
/>
|
|
|
-
|
|
|
-
|
|
|
</div>
|
|
|
<el-tabs v-model="activeTabs">
|
|
|
<el-tab-pane label="业务详情" name="1">
|
|
@@ -29,7 +27,6 @@
|
|
|
:columns="ShowDataTableColumns"
|
|
|
>
|
|
|
<template slot="supplier_name">
|
|
|
-
|
|
|
<span>{{ sitem.supplier_name }}</span>
|
|
|
<el-popover placement="top" width="300" trigger="hover">
|
|
|
<ul>
|
|
@@ -125,22 +122,18 @@
|
|
|
</el-popover>
|
|
|
</template>
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- <template slot="gold_price" >
|
|
|
- <div v-if="sitem.status == '0' && sitem.can[0].id == '6' && cost_detailArr.is_gold_price == '1'">
|
|
|
- {{sitem.gold_price}}
|
|
|
- </div>
|
|
|
- <div v-else>
|
|
|
- ----
|
|
|
+ <template slot="gold_price">
|
|
|
+ <div
|
|
|
+ v-if="
|
|
|
+ sitem.status == '0' &&
|
|
|
+ sitem.can[0].id == '6' &&
|
|
|
+ cost_detailArr.is_gold_price == '1'
|
|
|
+ "
|
|
|
+ >
|
|
|
+ {{ sitem.gold_price }}
|
|
|
</div>
|
|
|
+ <div v-else>----</div>
|
|
|
</template>
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
</show-data-table>
|
|
|
</el-collapse-item>
|
|
|
<el-collapse-item title="商品信息" name="2">
|
|
@@ -153,52 +146,19 @@
|
|
|
:iscgd="true"
|
|
|
/>
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
<editPrice
|
|
|
:newTime="newTime"
|
|
|
- v-if="newTime !== '' && sitem.status == '0' && sitem.can[0].id == '6' && cost_detailArr.is_gold_price == '1'"
|
|
|
-
|
|
|
+ v-if="
|
|
|
+ newTime !== '' &&
|
|
|
+ sitem.status == '0' &&
|
|
|
+ sitem.can[0].id == '6' &&
|
|
|
+ cost_detailArr.is_gold_price == '1'
|
|
|
+ "
|
|
|
:sitem="sitem"
|
|
|
:cost_detailArr="cost_detailArr"
|
|
|
- @refresh = "refresh"
|
|
|
+ @refresh="refresh"
|
|
|
>
|
|
|
-
|
|
|
</editPrice>
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
</el-collapse-item>
|
|
|
<el-collapse-item
|
|
|
title="入库单"
|
|
@@ -279,7 +239,6 @@ export default {
|
|
|
return [];
|
|
|
}
|
|
|
},
|
|
|
-
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
@@ -297,7 +256,7 @@ export default {
|
|
|
loading: false,
|
|
|
queryId: "",
|
|
|
ReturnAddModel: false, //采购单退货弹窗
|
|
|
- cost_detailArr:[],
|
|
|
+ cost_detailArr: [],
|
|
|
fileUrl: urlConfig.baseURL,
|
|
|
};
|
|
|
},
|
|
@@ -306,21 +265,18 @@ export default {
|
|
|
this.initData();
|
|
|
},
|
|
|
methods: {
|
|
|
-
|
|
|
-
|
|
|
// editPriceIf(sitem){
|
|
|
// console.log(sitem.status,"aaaaaaaa")
|
|
|
// if(sitem.status == "0" ){
|
|
|
-
|
|
|
+
|
|
|
// return false
|
|
|
// }else{
|
|
|
// return true
|
|
|
// }
|
|
|
-
|
|
|
+
|
|
|
// },
|
|
|
- refresh(){
|
|
|
-
|
|
|
- this.initData()
|
|
|
+ refresh() {
|
|
|
+ this.initData();
|
|
|
},
|
|
|
getNewTime() {
|
|
|
this.newTime = new Date().valueOf();
|
|
@@ -332,16 +288,15 @@ export default {
|
|
|
await this.setStatus(type, "提交入库方审核", e.remark);
|
|
|
}
|
|
|
},
|
|
|
- async goldPrice(){
|
|
|
-
|
|
|
+ async goldPrice() {
|
|
|
// console.log(this.sitem.order_type,"11111111111111111111111")
|
|
|
// if(this.sitem.order_type){}
|
|
|
// return;
|
|
|
- let res = {}
|
|
|
- let {order_type} = this.sitem
|
|
|
- if(order_type == "1"||order_type == "2"||order_type == "5"){
|
|
|
+ let res = {};
|
|
|
+ let { order_type } = this.sitem;
|
|
|
+ if (order_type == "1" || order_type == "2" || order_type == "5") {
|
|
|
res = await asyncRequest.cost_detail({ spuCode: this.sitem.spuCode });
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
res = await asyncRequest.cove_detail({ spuCode: this.sitem.spuCode });
|
|
|
}
|
|
|
if (res && res.code === 0 && res.data) {
|
|
@@ -357,8 +312,8 @@ export default {
|
|
|
const res = await asyncRequest.detail({ cgdNo: this.queryId });
|
|
|
if (res && res.code === 0 && res.data) {
|
|
|
this.sitem = res.data;
|
|
|
- console.log("11111111111111111",this.sitem)
|
|
|
- this.goldPrice()
|
|
|
+ console.log("11111111111111111", this.sitem);
|
|
|
+ this.goldPrice();
|
|
|
const { status, can, cgdNo } = this.sitem;
|
|
|
this.status = status;
|
|
|
if (can && can.length > 0) {
|
|
@@ -375,7 +330,7 @@ export default {
|
|
|
}
|
|
|
this.loading = false;
|
|
|
},
|
|
|
-
|
|
|
+
|
|
|
async statusConfirm() {
|
|
|
await this.$confirm(`确定已与供应商确认?`, {
|
|
|
confirmButtonText: "确定",
|
|
@@ -384,7 +339,7 @@ export default {
|
|
|
})
|
|
|
.then(async () => {
|
|
|
let model = {
|
|
|
- cgdNo: this.sitem.cgdNo,
|
|
|
+ cgdNo: [this.sitem.cgdNo],
|
|
|
status: "1",
|
|
|
};
|
|
|
const res = await asyncRequest.status(model);
|