|
@@ -14,31 +14,121 @@
|
|
|
:sitem="sitem"
|
|
|
:columns="ShowDataTableColumns"
|
|
|
>
|
|
|
- <template slot="status">
|
|
|
+ <template slot="good_name">
|
|
|
+ <img
|
|
|
+ v-viewer
|
|
|
+ style="width: 30px; heigth: 30px; margin: 3px 5px 0 0"
|
|
|
+ class="fl"
|
|
|
+ v-if="sitem.good_thumb_img"
|
|
|
+ :src="sitem.good_thumb_img"
|
|
|
+ alt=""
|
|
|
+ />
|
|
|
+ <div>{{ sitem.good_name }}</div>
|
|
|
+ </template>
|
|
|
+ <template slot="speclist">
|
|
|
+ <span v-for="(si, i) in sitem.speclist" :key="si.spec_id + i">
|
|
|
+ <span v-if="i !== 0">-</span
|
|
|
+ ><span>{{ si.spec_value }}</span>
|
|
|
+ </span>
|
|
|
+ </template>
|
|
|
+ <template slot="good_info_img">
|
|
|
+ <img
|
|
|
+ class="fl"
|
|
|
+ style="width: 30px; heigth: 30px; margin: 3px 5px 2px 0"
|
|
|
+ v-viewer
|
|
|
+ v-for="(si, i) in sitem.good_info_img"
|
|
|
+ :src="si"
|
|
|
+ :key="si + i"
|
|
|
+ />
|
|
|
+ </template>
|
|
|
+ <template slot="is_auth">
|
|
|
+ <el-tag
|
|
|
+ :size="'mini'"
|
|
|
+ v-text="
|
|
|
+ (options3.find((item) => item.id == sitem.is_auth) || {})
|
|
|
+ .name || '--'
|
|
|
+ "
|
|
|
+ />
|
|
|
+ </template>
|
|
|
+ <template slot="diff_price1"> ???? </template>
|
|
|
+ <template slot="is_stock">
|
|
|
+ <el-tag
|
|
|
+ :size="'mini'"
|
|
|
+ v-text="
|
|
|
+ (options4.find((item) => item.id == sitem.is_stock) || {})
|
|
|
+ .name || '--'
|
|
|
+ "
|
|
|
+ />
|
|
|
+ </template>
|
|
|
+ <template slot="good_type">
|
|
|
+ <el-tag
|
|
|
+ :size="'mini'"
|
|
|
+ v-text="
|
|
|
+ (
|
|
|
+ options1.find((item) => item.id == sitem.good_type) ||
|
|
|
+ {}
|
|
|
+ ).name || '--'
|
|
|
+ "
|
|
|
+ />
|
|
|
+ <span v-if="sitem.good_type === '1'"
|
|
|
+ >起订量:{{ sitem.moq }},工期:{{
|
|
|
+ sitem.customized
|
|
|
+ }}天</span
|
|
|
+ >
|
|
|
+ </template>
|
|
|
+ <template slot="supply_area">
|
|
|
+ <el-tag
|
|
|
+ :size="'mini'"
|
|
|
+ v-text="
|
|
|
+ (
|
|
|
+ options6.find((item) => item.id == sitem.supply_area) ||
|
|
|
+ {}
|
|
|
+ ).name || '--'
|
|
|
+ "
|
|
|
+ />
|
|
|
+ </template>
|
|
|
+ <template slot="is_step">
|
|
|
+ <el-tag
|
|
|
+ :size="'mini'"
|
|
|
+ v-text="
|
|
|
+ (options7.find((item) => item.id == sitem.is_step) || {})
|
|
|
+ .name || '--'
|
|
|
+ "
|
|
|
+ />
|
|
|
+ </template>
|
|
|
+
|
|
|
+ <template slot="exam_status">
|
|
|
<el-tag
|
|
|
:size="'mini'"
|
|
|
- :type="sitem.status == '0' ? 'warning' : ''"
|
|
|
v-text="
|
|
|
(
|
|
|
- statusList.find((item) => item.value == sitem.status) ||
|
|
|
+ options8.find((item) => item.id == sitem.exam_status) ||
|
|
|
{}
|
|
|
- ).label || '--'
|
|
|
+ ).name || '--'
|
|
|
"
|
|
|
- ></el-tag>
|
|
|
+ />
|
|
|
</template>
|
|
|
</show-data-table>
|
|
|
</el-collapse-item>
|
|
|
- <el-collapse-item title="采购部门审批" name="1">
|
|
|
- <exam-form
|
|
|
- :statusList="statusList"
|
|
|
+ <el-collapse-item
|
|
|
+ title="产品部门审批"
|
|
|
+ name="1"
|
|
|
+ v-if="status === '2'"
|
|
|
+ >
|
|
|
+ <online-exam-form
|
|
|
+ :options8="options8"
|
|
|
:newTime="newTime"
|
|
|
:disabled="false"
|
|
|
:isMust="false"
|
|
|
@searchChange="examForm"
|
|
|
/>
|
|
|
-
|
|
|
- 123
|
|
|
</el-collapse-item>
|
|
|
+ <el-collapse-item
|
|
|
+ title="财务定价"
|
|
|
+ name="2"
|
|
|
+ v-if="status === '3'"
|
|
|
+ >
|
|
|
+ 财务定价</el-collapse-item>
|
|
|
</el-collapse>
|
|
|
</el-tab-pane>
|
|
|
<el-tab-pane label="审批记录" name="2"> 111 </el-tab-pane>
|
|
@@ -54,10 +144,23 @@ import asyncRequest from "@/apis/service/goodStore/goodsOnline";
|
|
|
import resToken from "@/mixins/resToken";
|
|
|
import { mapGetters } from "vuex";
|
|
|
import ShowDataTableColumns from "./ShowDataTableColumns";
|
|
|
+import onlineExamForm from "./components/online-exam-form";
|
|
|
+import {
|
|
|
+ options1,
|
|
|
+ options2,
|
|
|
+ options3,
|
|
|
+ options4,
|
|
|
+ options5,
|
|
|
+ options6,
|
|
|
+ options7,
|
|
|
+ options8,
|
|
|
+} from "./columns";
|
|
|
export default {
|
|
|
name: "goodsOnlineDetail",
|
|
|
mixins: [resToken],
|
|
|
-
|
|
|
+ components: {
|
|
|
+ onlineExamForm,
|
|
|
+ },
|
|
|
computed: {
|
|
|
...mapGetters(["tablebtnSize", "searchSize", "size"]),
|
|
|
powers() {
|
|
@@ -76,7 +179,14 @@ export default {
|
|
|
data() {
|
|
|
return {
|
|
|
ShowDataTableColumns: ShowDataTableColumns,
|
|
|
- statusList: [],
|
|
|
+ options1: options1,
|
|
|
+ options2: options2,
|
|
|
+ options3: options3,
|
|
|
+ options4: options4,
|
|
|
+ options5: options5,
|
|
|
+ options6: options6,
|
|
|
+ options7: options7,
|
|
|
+ options8: options8,
|
|
|
size: "small",
|
|
|
activeTabs: "1",
|
|
|
activeNames: ["0", "1"],
|
|
@@ -112,11 +222,11 @@ export default {
|
|
|
async examForm(e) {
|
|
|
console.log(e);
|
|
|
if (!this.loading) {
|
|
|
- let type = e.state === "1" ? "1" : e.rebut;
|
|
|
- await this.setstatus(type, "提交采购部门审核", e.remark);
|
|
|
+ let type = e.state === "1" ? "3" : e.rebut;
|
|
|
+ await this.setstatus(type, "提交产品部门审核", e.online_time, e.remark);
|
|
|
}
|
|
|
},
|
|
|
- async setstatus(type, detail, remark) {
|
|
|
+ async setstatus(type, detail, time, remark) {
|
|
|
await this.$confirm(`确定要${detail}?`, {
|
|
|
confirmButtonText: "确定",
|
|
|
cancelButtonText: "取消",
|
|
@@ -124,8 +234,9 @@ export default {
|
|
|
})
|
|
|
.then(async () => {
|
|
|
let _model = {
|
|
|
- spuCode: this.queryId,
|
|
|
- status: type,
|
|
|
+ skuCode: this.queryId,
|
|
|
+ online_time: time,
|
|
|
+ exam_status: type,
|
|
|
remark: remark,
|
|
|
};
|
|
|
let res = await asyncRequest.status(_model);
|
|
@@ -171,6 +282,7 @@ export default {
|
|
|
});
|
|
|
}
|
|
|
this.sitem.cat = cat;
|
|
|
+ this.sitem.good_info_img = this.sitem.good_info_img.split(",");
|
|
|
this.status = status;
|
|
|
this.getNewTime();
|
|
|
} else if (code >= 100 && code <= 104) {
|