|
@@ -8,12 +8,7 @@
|
|
|
:size="'mini'"
|
|
|
class="demo-tableForm product_go"
|
|
|
>
|
|
|
- <el-table
|
|
|
- :data="tableForm.product_go"
|
|
|
- border
|
|
|
- :size="'mini'"
|
|
|
- row-key="key"
|
|
|
- >
|
|
|
+ <el-table :data="tableForm.product_go" border :size="'mini'" row-key="key">
|
|
|
<template v-for="(item, index) in columns">
|
|
|
<el-table-column
|
|
|
:prop="item.prop"
|
|
@@ -31,8 +26,10 @@
|
|
|
class="fr"
|
|
|
style="margin: 3px 0 0 0"
|
|
|
v-if="
|
|
|
- (status === '1' && powers.some((i) => i == '028')) ||
|
|
|
- (status === '2' && powers.some((i) => i == '028'))
|
|
|
+ ((status === '1' && powers.some((i) => i == '028')) ||
|
|
|
+ (status === '2' && powers.some((i) => i == '028'))) &&
|
|
|
+ sitem &&
|
|
|
+ sitem.has_account + '' === '0'
|
|
|
"
|
|
|
effect="dark"
|
|
|
content="添加"
|
|
@@ -75,7 +72,7 @@
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
</template>
|
|
|
- <script>
|
|
|
+<script>
|
|
|
import asyncRequest from "@/apis/service/stock/allot/detail";
|
|
|
import resToken from "@/mixins/resToken";
|
|
|
import config from "./columns-table"; //表格列参数
|
|
@@ -168,17 +165,10 @@ export default {
|
|
|
this.tableForm.product_go = child || [];
|
|
|
this.tableForm.product_go.forEach((e) => {
|
|
|
e.sendtype_name =
|
|
|
- e.sendtype === "1"
|
|
|
- ? "公司自提"
|
|
|
- : e.sendtype === "2"
|
|
|
- ? "供应商包邮"
|
|
|
- : "--";
|
|
|
+ e.sendtype === "1" ? "公司自提" : e.sendtype === "2" ? "供应商包邮" : "--";
|
|
|
e.status_name =
|
|
|
- (
|
|
|
- this.statusOptions.find(
|
|
|
- (item) => item.value == e.status
|
|
|
- ) || {}
|
|
|
- ).label || "--";
|
|
|
+ (this.statusOptions.find((item) => item.value == e.status) || {}).label ||
|
|
|
+ "--";
|
|
|
});
|
|
|
}
|
|
|
});
|
|
@@ -188,9 +178,9 @@ export default {
|
|
|
this.showModel = true;
|
|
|
},
|
|
|
async submitForm() {
|
|
|
- if (this.loading) {
|
|
|
- return;
|
|
|
- }
|
|
|
+ if (this.loading) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
let good = [];
|
|
|
this.loading = true;
|
|
|
good = this.getGoodList();
|
|
@@ -209,9 +199,7 @@ export default {
|
|
|
if (res && res.code === 0) {
|
|
|
this.$notify.success({
|
|
|
title:
|
|
|
- this.status == "3"
|
|
|
- ? "入库方验货结果提交成功!"
|
|
|
- : "入库方验货审核结果提交成功",
|
|
|
+ this.status == "3" ? "入库方验货结果提交成功!" : "入库方验货审核结果提交成功",
|
|
|
message: "",
|
|
|
});
|
|
|
|
|
@@ -246,7 +234,6 @@ export default {
|
|
|
};
|
|
|
</script>
|
|
|
|
|
|
-
|
|
|
<style lang="scss" scoped>
|
|
|
.allot,
|
|
|
.allotDetail {
|
|
@@ -283,5 +270,3 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
</style>
|
|
|
-
|
|
|
-
|