|
@@ -155,19 +155,19 @@
|
|
|
<template #advanceRatio>
|
|
|
<el-row style="width: 100%">
|
|
|
<el-col :span="6" style="padding-right:8px">
|
|
|
- <el-form-item label="定⾦⽐例" prop="advanceRatio" class="margin-b-0 wid100">
|
|
|
+ <el-form-item label="定金比例(%)" prop="advanceRatio" class="margin-b-0 wid100">
|
|
|
<el-input-number v-model="formData.data.advanceRatio" placeholder="请输入" style="width: 100%" :precision="2" :min="0" :max="100"
|
|
|
:controls="false" @change="(val)=>changeAdvanceRatio(val,true)" />
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="6" style="padding:0px 4px">
|
|
|
- <el-form-item label="出货前付款比例" prop="beforeShipmentRatio" class="margin-b-0 wid100">
|
|
|
+ <el-form-item label="出货前付款比例(%)" prop="beforeShipmentRatio" class="margin-b-0 wid100">
|
|
|
<el-input-number v-model="formData.data.beforeShipmentRatio" placeholder="请输入" style="width: 100%" :precision="2" :min="0" :max="100"
|
|
|
:controls="false" @change="(val)=>changeAdvanceRatio(val,false)" />
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="6" style="padding:0px 4px">
|
|
|
- <el-form-item label="出货后付款比例" prop="afterShipmentRatio" class="margin-b-0 wid100">
|
|
|
+ <el-form-item label="出货后付款比例(%)" prop="afterShipmentRatio" class="margin-b-0 wid100">
|
|
|
<el-input-number v-model="formData.data.afterShipmentRatio" placeholder=" " style="width: 100%" :precision="2" :min="0" :max="100"
|
|
|
:controls="false" disabled />
|
|
|
</el-form-item>
|
|
@@ -260,19 +260,40 @@
|
|
|
<div v-else></div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="productName" label="商品其他信息" width="500">
|
|
|
+ <el-table-column prop="productName" label="商品信息" width="250">
|
|
|
<template #default="{ row, $index }">
|
|
|
<div style="width: 100%;line-height:22px">
|
|
|
- <el-row :gutter="5">
|
|
|
+ <div>
|
|
|
+ 分类:{{row.productClassifyName}}
|
|
|
+ </div>
|
|
|
+ <div>
|
|
|
+ 编码:{{row.productCode}}
|
|
|
+ </div>
|
|
|
+ <div>
|
|
|
+ 名称:{{row.productName}}
|
|
|
+ </div>
|
|
|
+ <div>
|
|
|
+ 规格尺寸 (cm): {{row.productLength}} * {{row.productWidth}} * {{row.productHeight}}
|
|
|
+ </div>
|
|
|
+ <div>
|
|
|
+ 颜色:{{row.productColor}}
|
|
|
+ </div>
|
|
|
+ <div>
|
|
|
+ 纹路:{{dictKeyValue(row.productFrontalTexture,frontLinesData)}}
|
|
|
+ </div>
|
|
|
+ <div>
|
|
|
+ 净重: {{row.productNetWeight}}
|
|
|
+ </div>
|
|
|
+ <div>
|
|
|
+ 单位:{{row.productUnit}}
|
|
|
+ </div>
|
|
|
+ <!-- <el-row :gutter="5">
|
|
|
<el-col :span="12">
|
|
|
分类:{{row.productClassifyName}}
|
|
|
</el-col>
|
|
|
<el-col :span="12">
|
|
|
编码名称:{{row.productCode}}({{row.productName}})
|
|
|
</el-col>
|
|
|
- <!-- <el-col :span="7">
|
|
|
- 名称:{{row.productName}}
|
|
|
- </el-col> -->
|
|
|
</el-row>
|
|
|
<el-row :gutter="5">
|
|
|
<el-col :span="12">
|
|
@@ -292,7 +313,7 @@
|
|
|
<el-col :span="6">
|
|
|
单位:{{row.productUnit}}
|
|
|
</el-col>
|
|
|
- </el-row>
|
|
|
+ </el-row> -->
|
|
|
</div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
@@ -308,13 +329,33 @@
|
|
|
<el-table-column prop="ww" label="纹路" width="140" />
|
|
|
<el-table-column prop="weight" label="净重" width="140" />
|
|
|
<el-table-column prop="unit" label="单位" width="140" /> -->
|
|
|
- <el-table-column label="生产plt文件" width="210">
|
|
|
+ <el-table-column label="生产plt文件" width="180">
|
|
|
<template #default="{ row, $index }">
|
|
|
<div style="width:100%">
|
|
|
- <div style="display:flex">
|
|
|
+ <!-- <div style="display:flex">
|
|
|
<div style="writing-mode: vertical-rl;margin-right:10px;background:rgb(94 120 145);color:#fff;padding:5px 2px;border-radius:3px;line-height:21px;;cursor:pointer"
|
|
|
@click="handleClickUploadOne($index)" v-if="!judgeStatus()">
|
|
|
- {{row.isShowProductFile?'上 传 文 件':'取 消 上 传'}}
|
|
|
+ {{row.isShowProductFile?'上 传 p l t':'取 消 上 传'}}
|
|
|
+ </div>
|
|
|
+ <div>
|
|
|
+ <div v-if="row.isShowProductFile &&row.fileListOne && row.fileListOne.length > 0">
|
|
|
+ <span class="el-click" @click="onPicture(row.fileListOne[0].fileUrl)">{{row.fileListOne[0].fileName}}</span>
|
|
|
+ </div>
|
|
|
+ <div v-else>
|
|
|
+ <el-upload :file-list="row.prodFileList" :action="uploadUrl" :data="uploadData" :limit="1" :list-type="'text'"
|
|
|
+ :before-upload="(file)=>handleBeforeUploadOne(file,$index)" :on-success="()=>handleSuccessOne($index)"
|
|
|
+ :on-remove="(file)=>handleRemoveFile(file,$index)" :on-preview="onPreviewFile"
|
|
|
+ :on-exceed="()=>msgTip(`上传文件数量不可大于1`, 2)">
|
|
|
+ <el-button text type="primary">上传</el-button>
|
|
|
+ </el-upload>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div> -->
|
|
|
+ <div>
|
|
|
+ <!-- writing-mode: vertical-rl; 文字垂直排 -->
|
|
|
+ <div style="margin-right:10px;background:rgb(94 120 145);color:#fff;padding:5px 2px;border-radius:3px;line-height:21px;;cursor:pointer;width:60px;text-align:center"
|
|
|
+ @click="handleClickUploadOne($index)" v-if="!judgeStatus()">
|
|
|
+ {{row.isShowProductFile?'上传plt':'取消上传'}}
|
|
|
</div>
|
|
|
<div>
|
|
|
<div v-if="row.isShowProductFile &&row.fileListOne && row.fileListOne.length > 0">
|
|
@@ -919,7 +960,13 @@ const formConfig = computed(() => {
|
|
|
label: "其他收款方式备注说明",
|
|
|
itemType: "textarea",
|
|
|
itemWidth: 100,
|
|
|
- isShow: formData.data.paymentMethod == "other",
|
|
|
+ isShow:
|
|
|
+ formData.data.paymentMethod &&
|
|
|
+ !["bank", "bank1", "阿里巴巴", "wxPay", "aliPay"].includes(
|
|
|
+ formData.data.paymentMethod
|
|
|
+ )
|
|
|
+ ? true
|
|
|
+ : false,
|
|
|
},
|
|
|
{
|
|
|
type: "slot",
|
|
@@ -930,7 +977,7 @@ const formConfig = computed(() => {
|
|
|
// {
|
|
|
// type: "number",
|
|
|
// prop: "advanceRatio",
|
|
|
- // label: "定⾦⽐例",
|
|
|
+ // label: "定金比例",
|
|
|
// precision: 2,
|
|
|
// min: 0,
|
|
|
// max: 100,
|
|
@@ -1047,12 +1094,14 @@ const formConfig = computed(() => {
|
|
|
},
|
|
|
{
|
|
|
type: "date",
|
|
|
+ itemType: "date",
|
|
|
prop: "saleDate",
|
|
|
label: "销售日期",
|
|
|
itemWidth: 50,
|
|
|
},
|
|
|
{
|
|
|
type: "date",
|
|
|
+ itemType: "date",
|
|
|
prop: "deliveryTime",
|
|
|
label: "交货期限",
|
|
|
itemWidth: 50,
|
|
@@ -1064,13 +1113,13 @@ const formConfig = computed(() => {
|
|
|
data: shippingMethod.value,
|
|
|
itemWidth: 50,
|
|
|
},
|
|
|
- {
|
|
|
- type: "select",
|
|
|
- prop: "taxTransportationWay",
|
|
|
- label: "税运⽅式",
|
|
|
- data: taxTransportationWay.value,
|
|
|
- itemWidth: 50,
|
|
|
- },
|
|
|
+ // {
|
|
|
+ // type: "select",
|
|
|
+ // prop: "taxTransportationWay",
|
|
|
+ // label: "税运方式",
|
|
|
+ // data: taxTransportationWay.value,
|
|
|
+ // itemWidth: 50,
|
|
|
+ // },
|
|
|
// {
|
|
|
// type: "input",
|
|
|
// prop: "transportRemark",
|
|
@@ -2227,6 +2276,7 @@ const getPriceSheetData = (id) => {
|
|
|
const isEditList = ref(true);
|
|
|
onMounted(() => {
|
|
|
formData.data.ofCompanyId = proxy.useUserStore().user.companyId;
|
|
|
+ formData.data.salesmanId = proxy.useUserStore().user.userId;
|
|
|
handleOfCompanyIdChange(formData.data.ofCompanyId);
|
|
|
if (
|
|
|
proxy.useUserStore().currentCompany == proxy.useUserStore().user.ofCompanyId
|