|
@@ -8,11 +8,10 @@
|
|
|
:rules="rulesThis"
|
|
|
label-width="110px"
|
|
|
style="width: 100%"
|
|
|
- class="demo-ruleForm"
|
|
|
>
|
|
|
<el-row>
|
|
|
<el-col :span="12">
|
|
|
- <el-form-item label="销售方" prop="companyNo">
|
|
|
+ <el-form-item label="销售方" prop="companyNo" class="clear">
|
|
|
<search-work-company
|
|
|
:value="ruleForm.companyNo"
|
|
|
:placeholder="'销售方公司'"
|
|
@@ -24,7 +23,7 @@
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="12">
|
|
|
- <el-form-item label="购买方公司" prop="khNo">
|
|
|
+ <el-form-item label="购买方公司" prop="khNo" class="clear">
|
|
|
<search-customer
|
|
|
:value="ruleForm.khNo"
|
|
|
:names="ruleForm.customer_name"
|
|
@@ -37,7 +36,7 @@
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
|
- <el-form-item label="所属平台" prop="platform_code">
|
|
|
+ <el-form-item label="所属平台" prop="platform_code" class="clear">
|
|
|
<search-terrace
|
|
|
:value="ruleForm.platform_code"
|
|
|
:disabled="type === 'view'"
|
|
@@ -50,7 +49,7 @@
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
|
- <el-form-item label="咨询截止时间" prop="endtime">
|
|
|
+ <el-form-item label="咨询截止时间" prop="endtime" class="clear">
|
|
|
<el-date-picker
|
|
|
v-model="ruleForm.endtime"
|
|
|
type="datetime"
|
|
@@ -63,7 +62,7 @@
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
|
- <el-form-item label="咨询类型" prop="is_project">
|
|
|
+ <el-form-item label="咨询类型" prop="is_project" class="clear">
|
|
|
<el-select
|
|
|
v-model="ruleForm.is_project"
|
|
|
style="width: 100%"
|
|
@@ -81,7 +80,7 @@
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="16" v-if="ruleForm.is_project === '1'">
|
|
|
- <el-form-item label="项目名称" prop="projectNo">
|
|
|
+ <el-form-item label="项目名称" prop="projectNo" class="clear">
|
|
|
<el-select
|
|
|
v-model="ruleForm.projectNo"
|
|
|
multiple
|
|
@@ -98,9 +97,9 @@
|
|
|
>
|
|
|
<el-option
|
|
|
v-for="(item, index) in poptions"
|
|
|
- :key="item.id + index"
|
|
|
- :label="item.name"
|
|
|
- :value="item.code + ''"
|
|
|
+ :key="item.projectNo + index"
|
|
|
+ :label="item.project_name"
|
|
|
+ :value="item.projectNo + ''"
|
|
|
:disabled="item.status !== '1'"
|
|
|
>
|
|
|
</el-option>
|
|
@@ -108,7 +107,7 @@
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="8" v-if="ruleForm.is_project === '1'">
|
|
|
- <el-form-item label="项目总预算" prop="anomalous_remark">
|
|
|
+ <el-form-item label="项目总预算" prop="anomalous_remark" class="clear" required>
|
|
|
<el-input
|
|
|
placeholder="项目总预算"
|
|
|
v-model="ruleForm.anomalous_remark"
|
|
@@ -117,7 +116,7 @@
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="24" v-if="ruleForm.is_project === '1'">
|
|
|
- <el-form-item label="项目用途" prop="anomalous_remark">
|
|
|
+ <el-form-item label="项目用途" prop="anomalous_remark" class="clear" required>
|
|
|
<el-input
|
|
|
placeholder="项目用途"
|
|
|
v-model="ruleForm.anomalous_remark"
|
|
@@ -126,7 +125,228 @@
|
|
|
/>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
+ <el-co :span="24">
|
|
|
+ <el-form-item
|
|
|
+ label="商品信息"
|
|
|
+ :label-position="'top'"
|
|
|
+ prop="ladder"
|
|
|
+ class="clear"
|
|
|
+ >
|
|
|
+ <el-table
|
|
|
+ :data="ruleForm.ladder"
|
|
|
+ stripe
|
|
|
+ border
|
|
|
+ :size="'mini'"
|
|
|
+ style="width: 100%"
|
|
|
+ >
|
|
|
+ <el-table-column type="expand">
|
|
|
+ <template slot-scope="props">
|
|
|
+ <show-data-table
|
|
|
+ :sitem="props.row"
|
|
|
+ :columns="ShowDataTableColumns"
|
|
|
+ >
|
|
|
+ <template slot="good_name">
|
|
|
+ <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="is_auth">
|
|
|
+ <el-tag
|
|
|
+ :size="'mini'"
|
|
|
+ v-text="
|
|
|
+ (
|
|
|
+ options3.find((item) => item.id == sitem.is_auth) ||
|
|
|
+ {}
|
|
|
+ ).name || '--'
|
|
|
+ "
|
|
|
+ />
|
|
|
+ </template> -->
|
|
|
+ </show-data-table>
|
|
|
+
|
|
|
+ <!-- <el-form label-position="left" inline >
|
|
|
+ <el-row>
|
|
|
+ <el-col :span="4">
|
|
|
+ <el-form-item label="型号">
|
|
|
+ <span>{{ props.row.model }}</span>
|
|
|
+ </el-form-item></el-col
|
|
|
+ >
|
|
|
+ <el-col :span="4">
|
|
|
+ <el-form-item label="颜色">
|
|
|
+ <span>{{ props.row.color }}</span>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="4">
|
|
|
+ <el-form-item label="材质">
|
|
|
+ <span>{{ props.row.material }}</span>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+
|
|
|
+ <el-col :span="4">
|
|
|
+ <el-form-item label="贵金属种类">
|
|
|
+ <span>{{ props.row.metal_id }}</span>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="4">
|
|
|
+ <el-form-item label="克重规格">
|
|
|
+ <span>{{ props.row.metal_id }}</span>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="4">
|
|
|
+ <el-form-item label="当前贵金属单价">
|
|
|
+ <span>{{ props.row.metal_id }}元/g</span>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="4">
|
|
|
+ <el-form-item label="配置要求">
|
|
|
+ <span>{{ props.row.config }}</span>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="其他配置要求">
|
|
|
+ <span>{{ props.row.config }}</span>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="工艺说明">
|
|
|
+ <span>{{ props.row.config }}</span>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="产品用途">
|
|
|
+ <span>{{ props.row.config }}</span>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="咨询备注">
|
|
|
+ <span>{{ props.row.config }}</span>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ </el-form> -->
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ prop="arrival_time"
|
|
|
+ label="到货时间"
|
|
|
+ width="100"
|
|
|
+ show-overflow-tooltip
|
|
|
+ />
|
|
|
+ <el-table-column
|
|
|
+ prop="budget_price"
|
|
|
+ label="预算单价"
|
|
|
+ show-overflow-tooltip
|
|
|
+ width="110"
|
|
|
+ />
|
|
|
+ <el-table-column
|
|
|
+ prop="num"
|
|
|
+ label="购买数量"
|
|
|
+ show-overflow-tooltip
|
|
|
+ width="110"
|
|
|
+ />
|
|
|
+ <el-table-column
|
|
|
+ prop="good_name"
|
|
|
+ label="商品名称"
|
|
|
+ show-overflow-tooltip
|
|
|
+ width="170"
|
|
|
+ />
|
|
|
+ <el-table-column
|
|
|
+ prop="good_img"
|
|
|
+ label="商品图片"
|
|
|
+ width="70"
|
|
|
+ show-overflow-tooltip
|
|
|
+ >
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <img
|
|
|
+ v-viewer
|
|
|
+ style="width: 26px; height: 26px; margin: 5px 5px 0 0"
|
|
|
+ class="fl"
|
|
|
+ v-if="scope.row.good_img"
|
|
|
+ :src="scope.row.good_img"
|
|
|
+ alt=""
|
|
|
+ />
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+
|
|
|
+ <el-table-column
|
|
|
+ prop="unit"
|
|
|
+ label="商品单位"
|
|
|
+ width="100"
|
|
|
+ v-if="!(status === '' || status === '0')"
|
|
|
+ show-overflow-tooltip
|
|
|
+ />
|
|
|
+ <el-table-column
|
|
|
+ prop="cost_price"
|
|
|
+ label="商品品牌"
|
|
|
+ width="100"
|
|
|
+ v-if="!(status === '' || status === '0')"
|
|
|
+ show-overflow-tooltip
|
|
|
+ />
|
|
|
+
|
|
|
|
|
|
+ <el-table-column
|
|
|
+ prop="activity_price"
|
|
|
+ label="是否多地"
|
|
|
+ width="100"
|
|
|
+ show-overflow-tooltip
|
|
|
+ />
|
|
|
+ <el-table-column
|
|
|
+ prop="activity_price"
|
|
|
+ label="是否定制"
|
|
|
+ width="100"
|
|
|
+ show-overflow-tooltip
|
|
|
+ />
|
|
|
+ <el-table-column fixed="right" width="80">
|
|
|
+ <template slot="header" slot-scope="scope">
|
|
|
+ <span>操作</span>
|
|
|
+ <el-tooltip
|
|
|
+ class="item"
|
|
|
+ effect="dark"
|
|
|
+ v-if="status === ''"
|
|
|
+ content="添加活动商品"
|
|
|
+ placement="top"
|
|
|
+ >
|
|
|
+ <i
|
|
|
+ class="el-icon-circle-plus-outline fr"
|
|
|
+ style="font-size: 18px; margin-top: 2px"
|
|
|
+ @click="openEdit('add', '0')"
|
|
|
+ />
|
|
|
+ </el-tooltip>
|
|
|
+ </template>
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-tooltip
|
|
|
+ effect="dark"
|
|
|
+ content="查看商品信息"
|
|
|
+ placement="top"
|
|
|
+ >
|
|
|
+ <i
|
|
|
+ class="el-icon-view tb-icon"
|
|
|
+ @click="showGoodModelFun(scope.row.skuCode)"
|
|
|
+ ></i>
|
|
|
+ </el-tooltip>
|
|
|
+ <el-tooltip
|
|
|
+ v-if="status === ''"
|
|
|
+ effect="dark"
|
|
|
+ content="删除"
|
|
|
+ placement="top"
|
|
|
+ >
|
|
|
+ <i
|
|
|
+ class="el-icon-delete tb-icon"
|
|
|
+ @click="openCostEditDelete(scope.$index)"
|
|
|
+ ></i>
|
|
|
+ </el-tooltip>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ </el-table>
|
|
|
+ </el-form-item>
|
|
|
+ </el-co>
|
|
|
<el-col :span="24" style="text-align: right" v-if="id === 'add'">
|
|
|
<el-button type="primary" @click="submitForm" :size="'mini'"
|
|
|
>保 存</el-button
|
|
@@ -136,8 +356,9 @@
|
|
|
</el-form>
|
|
|
</template>
|
|
|
<script>
|
|
|
-import asyncRequest from "@/apis/service/sellOut/sellAfterApply";
|
|
|
+import asyncRequest from "@/apis/service/sellOut/zixunOrder";
|
|
|
import resToken from "@/mixins/resToken";
|
|
|
+import ShowDataTableColumns from "./ShowDataTableColumns";
|
|
|
export default {
|
|
|
name: "handover",
|
|
|
props: ["id", "sitem", "newTime"],
|
|
@@ -148,6 +369,8 @@ export default {
|
|
|
{ value: "0", label: "非项目" },
|
|
|
{ value: "1", label: "项目" },
|
|
|
],
|
|
|
+ ShowDataTableColumns: ShowDataTableColumns,
|
|
|
+ configOptions: ["证书", "包装盒", "绒布袋", "标签", "其他"],
|
|
|
poptions: [],
|
|
|
loading: false,
|
|
|
selectLoading: false,
|
|
@@ -207,7 +430,14 @@ export default {
|
|
|
trigger: "change",
|
|
|
},
|
|
|
],
|
|
|
-
|
|
|
+ projectNo: [
|
|
|
+ {
|
|
|
+ type: "array",
|
|
|
+ required: true,
|
|
|
+ message: "请选择项目",
|
|
|
+ trigger: "change",
|
|
|
+ },
|
|
|
+ ],
|
|
|
ladder: [
|
|
|
{
|
|
|
type: "array",
|