Commit d7bd784d by zhangxw

Merge branch 'SAAS+V5.7.9' of http://192.168.3.233:8090/saas_plus/dj-car-life-sy…

…stem into SAAS+V5.7.9
2 parents 20453ec8 e181efd7
......@@ -30,8 +30,7 @@
v-if="(equitySceneType.includes(formData[item.key]) || extendedPosiType.includes(formData[item.key])) && !baseConfig.supplierCode.includes(`${formData.supplierCode}`)">
<div class="label">嘀加成本元/件:</div>
<div class="value">
<ellipsis-popover
:content="priceFilter(formData.upgradeGoods['djCost']) || ''"></ellipsis-popover>
<ellipsis-popover :content="priceFilter(formData.upgradeGoods['djCost']) || ''"></ellipsis-popover>
</div>
</div>
<!-- 商品分类 1太阳膜 -->
......@@ -58,8 +57,7 @@
<div class="item" v-if="membraneTypeList.includes(formData[item.key])">
<div class="label">质保年限/年:</div>
<div class="value">
<ellipsis-popover
:content="`${formData.upgradeGoods['warrantyPeriod']}年` || ''"></ellipsis-popover>
<ellipsis-popover :content="`${formData.upgradeGoods['warrantyPeriod']}年` || ''"></ellipsis-popover>
</div>
</div>
</div>
......@@ -104,10 +102,9 @@
<div v-else>
<el-form-item :prop="item.name"
:label="item.label ? (item.unit ? (membraneTypeList.includes(formData['goodsType']) ? item.label + `(元)/车` : (item.label + '(元)/件')) : item.label) + ':' : ''"
:id="item.name" :label-width="item.label ? '180px' : '0px'" class="dis-in-block"
style="margin-bottom: 0">
:id="item.name" :label-width="item.label ? '180px' : '0px'" class="dis-in-block" style="margin-bottom: 0">
<div>
<span>{{ item.unit ? priceFilter(formData[item.name]) : formData[item.name] }}</span>
<span>{{ item.unit ? priceFilter(formData[item.name]) : formData[item.name] || '-' }}</span>
<span v-if="item.name == 'minSellPrice'">{{ formData['validMinSellPrice'] == 'Y' ? '(校验最低价)' :
'(不校验最低价)' }}</span>
</div>
......
......@@ -11,17 +11,16 @@
<div v-for="(item, index) in i.formBlock" :key="index">
<!-- 单选 -->
<!-- 太阳膜类商品 上架部位 -->
<div v-if="
item.type === 'radio' &&
<div v-if="item.type === 'radio' &&
formData['goodsType'] == 1 &&
!item.index
">
">
<el-form-item :prop="item.name" :label="item.label ? item.label + ':' : ''" :id="item.name"
:label-width="item.label ? '180px' : '0px'" class="dis-in-block"
:style="{ 'margin-bottom': !item.type ? '0px' : '22px' }">
<el-radio-group v-model="formData[item.name]">
<el-radio v-for="(subItem, subIndex) in item.radioGroupList" :key="subIndex"
:label="subItem.confId">{{ subItem.confName }}</el-radio>
<el-radio v-for="(subItem, subIndex) in item.radioGroupList" :key="subIndex" :label="subItem.confId">{{
subItem.confName }}</el-radio>
</el-radio-group>
</el-form-item>
</div>
......@@ -32,29 +31,28 @@
<div class="label">
{{
subItem.unit
? membraneTypeList.includes(formData[item.key])
? subItem.label +
`(元)/${subItem.value == "purchasePrice" ? "卷" : "卷"
}`
: subItem.label + "(元)/件"
: subItem.label
? membraneTypeList.includes(formData[item.key])
? subItem.label +
`(元)/${subItem.value == "purchasePrice" ? "卷" : "卷"
}`
: subItem.label + "(元)/件"
: subItem.label
}}:
</div>
<div class="value">
<ellipsis-popover :content="subItem.unit
? priceFilter(formData.upgradeGoods[subItem.value])
: formData.upgradeGoods[subItem.value] || ''
"></ellipsis-popover>
? priceFilter(formData.upgradeGoods[subItem.value])
: formData.upgradeGoods[subItem.value] || ''
"></ellipsis-popover>
</div>
</div>
<!-- 权益/延保非第三方展示 -->
<div class="item" v-if="
(equitySceneType.includes(formData[item.key]) ||
extendedPosiType.includes(formData[item.key])) &&
<div class="item" v-if="(equitySceneType.includes(formData[item.key]) ||
extendedPosiType.includes(formData[item.key])) &&
!baseConfig.supplierCode.includes(
`${formData.supplierCode}`
)
">
">
<div class="label">嘀加成本元/件:</div>
<div class="value">
<ellipsis-popover :content="priceFilter(formData.upgradeGoods['djCost']) || '-'
......@@ -69,12 +67,11 @@
</div>
</div>
<!-- 商品分类 权益类(供应方为非第三方) -->
<div class="item" v-if="
equitySceneType.includes(formData[item.key]) &&
<div class="item" v-if="equitySceneType.includes(formData[item.key]) &&
!baseConfig.supplierCode.includes(
`${formData.supplierCode}`
)
">
">
<div class="label">服务项目:</div>
<div class="value">
<ellipsis-popover :content="formData.upgradeGoods['serviceItemNames'] || ''"></ellipsis-popover>
......@@ -86,8 +83,8 @@
<div class="value">
{{
formData.upgradeGoods["entityCardFlag"] == "Y"
? "是"
: "否"
? "是"
: "否"
}}
</div>
</div>
......@@ -102,11 +99,10 @@
</div>
</div>
<!-- 下拉框/输入框 -->
<div v-if="
item.type === 'input' ||
<div v-if="item.type === 'input' ||
item.type === 'select' ||
item.type === 'searchSelect'
">
">
<el-form-item :prop="item.name" :label="item.label
? (item.unit
? membraneTypeList.includes(formData['goodsType'])
......@@ -128,8 +124,8 @@
</template>
<!-- 选择框 -->
<el-select v-else-if="item.type === 'select'" v-model="formData[item.name]" :clearable="item.isClear"
:ref="'selectRefs_' + item.name" :placeholder="'请选择' + item.label"
@change="selectAddAttr($event, item)" :style="{ width: item.width || formItemWidth }" filterable>
:ref="'selectRefs_' + item.name" :placeholder="'请选择' + item.label" @change="selectAddAttr($event, item)"
:style="{ width: item.width || formItemWidth }" filterable>
<el-option v-for="subItem in item.optionList" :key="subItem[item.optionId]"
:label="subItem[item.optionLabel]" :value="subItem[item.optionId]" />
</el-select>
......@@ -145,7 +141,7 @@
</el-option>
</el-select> -->
<el-button v-else-if="item.type === 'searchSelect'" icon="el-icon-plus"
@click="handleSelectGoods">选择商品</el-button>
@click="handleSelectGoods">选择产品</el-button>
</el-form-item>
</div>
<!-- 财务规则校验 -->
......@@ -195,8 +191,7 @@
:
</span>
<el-checkbox-group v-model="formData[item.name]">
<el-checkbox v-for="(subItem, subIndex) in item.checkGroupList" :key="subIndex"
:label="subItem.confId">
<el-checkbox v-for="(subItem, subIndex) in item.checkGroupList" :key="subIndex" :label="subItem.confId">
{{ subItem.confName }}
</el-checkbox>
</el-checkbox-group>
......@@ -328,7 +323,7 @@
:initial-index="initialIndex" />
<select-goods-dialog v-if="selectGoodsVisible" :select-goods-visible="selectGoodsVisible"
@handleSelectGoodsConfirm="handleSelectGoodsConfirm" @handleSelectGoodsClose="handleSelectGoodsClose"
:upgrade-goods-id="formData.upgradeGoodsId"></select-goods-dialog>
:upgrade-goods-id="formData.upgradeGoodsId" :is-shelves="true"></select-goods-dialog>
</div>
</template>
......@@ -387,6 +382,14 @@ export default {
}
}
],
goodsAlias: [
{ required: true, message: "请输入产品别名", trigger: "blur" },
{
validator: (rule, value, callback) => {
value.length > 30 ? callback(new Error("产品别名不能超过30个字符")) : callback()
}
}
],
// minSellPrice: [
// { required: true, message: "请输入最低售价", trigger: "blur" },
// {
......
......@@ -29,10 +29,10 @@ export default {
addOrEdit: 'add',
proFormRef: 'pro',
editForm: [{
title: '商品信息',
title: '产品信息',
formBlock: [{
name: 'upgradeGoodsId',
label: '上架商品',
label: '上架产品',
isRequired: true,
type: 'searchSelect',
optionList: [],
......@@ -86,9 +86,21 @@ export default {
}, {
label: '产品ID',
value: 'upgradeCommodityCode'
},
{
label: '供应商名称',
value: 'thirdPartyName'
}]
},
{
name: 'purchaseGoodsName',
label: '产品别名',
type: 'input',
width: '432px',
value: "purchaseGoodsName",
handleInput: true
},
{
name: 'purchasePrice',
label: '采购价',
type: 'input',
......@@ -159,7 +171,9 @@ export default {
voucherList: [],
// validMinSellPriceFlag: true,
// validMinSellPrice: 'Y',
suitCarType: 1
suitCarType: 1,
goodsAlias: '',
purchaseGoodsName: ''
},
secondGoodsList: [],
goodsNameKeyword: '',
......@@ -343,6 +357,7 @@ export default {
confirmEvent(params, num) {
const obj = { // 商品信息
position: '',
purchaseGoodsName: '',
goodsAlias: '',
warrantyType: '',
productType: [],
......
......@@ -44,10 +44,10 @@ export default {
financeCheckFlagStr: [{ required: true }]
},
editForm: [{
title: '商品信息',
title: '产品信息',
formBlock: [{
name: 'goodsName',
label: '上架商品',
label: '上架产品',
type: 'incidBox',
key: 'goodsType',
detailInfo: [{
......@@ -91,9 +91,19 @@ export default {
}, {
label: '产品ID',
value: 'upgradeCommodityCode'
},
{
label: '供应商名称',
value: 'thirdPartyName'
}]
},
{
name: 'purchaseGoodsName',
label: '产品别名',
width: '432px',
handleInput: true
},
{
name: 'purchasePrice',
label: '采购价',
type: 'input',
......
......@@ -117,11 +117,8 @@
:selected-scene="batchCopySelectScene" @handleBatchCopyConfirm="handleBatchCopyConfirm"
@handleBatchCopyClose="handleBatchCopyClose">
</batch-copy-dialog>
<d2-file-import-dialog :is-visible="fileVisible"
title="上传文件"
@closeDialog="handleBatchImport"
@confirmDialog="handleConfirmImport"
@downloadTemplate="exportTemplate" />
<d2-file-import-dialog :is-visible="fileVisible" title="上传文件" @closeDialog="handleBatchImport"
@confirmDialog="handleConfirmImport" @downloadTemplate="exportTemplate" />
</d2-container>
</template>
<script>
......@@ -158,7 +155,9 @@ export default {
status: '',
yqMerchantId: '',
goodsSource: 0,
financeCheckFlag: ''
financeCheckFlag: '',
thirdPartyName: '',
thirdPartyCode: ''
},
tempGoodsType: [],
getListApi: getGroundingManageList,
......@@ -250,6 +249,12 @@ export default {
isClear: true,
keyFn: this.keyDowmGetList
}, {
label: '供应商名称',
name: 'thirdPartyName',
type: 'input',
isClear: true,
keyFn: this.keyDowmGetList
}, {
label: '供应商编码',
name: 'thirdPartyCode',
type: 'input',
......@@ -326,13 +331,19 @@ export default {
// return cellValue.upgradeGoods.type || '-'
// }
}, {
label: '供应商名称',
prop: 'thirdPartyName',
width: 100,
formatter: (cellValue) => {
return cellValue?.thirdPartyName || '-'
}
}, {
label: '供应商编码',
prop: 'thirdPartyCode',
parentProp: 'upgradeGoods',
width: 100,
// formatter: (cellValue) => {
// return cellValue?.upgradeGoods?.thirdPartyCode || '-'
// }
formatter: (cellValue) => {
return cellValue?.thirdPartyCode || '-'
}
}, {
label: '上架商户',
name: '',
......
......@@ -307,7 +307,10 @@ export default {
if (index === -1) {
return;
}
this.$set(this.tabs.list, index, newRow);
this.$set(this.tabs.list, index, {
...newRow,
productName: getProductPackagesName(newRow.productType, newRow),
});
}
this.$refs.remoteSelectRef.forceUpdate();
......
<template>
<div>
<baseDialog :is-show.sync="dialogShow" :config="dialogConfig.setting" :dialog-config="dialogConfig.config" @closeDialog="handleDetailClose(false)">
<baseDialog :is-show.sync="dialogShow" :config="dialogConfig.setting" :dialog-config="dialogConfig.config"
@closeDialog="handleDetailClose(false)">
<div class="edit-order-dialog" v-if="dialogShow">
<div class="table-class">
<d2-table ref="purchaseOrderDetailTable" :table-params="tableParams" :has-page="hasPage" @refreshTable="refreshTable" :table-data="tableList" :table-total="detailInfo.tableTotal">
<d2-table ref="purchaseOrderDetailTable" :table-params="tableParams" :has-page="hasPage"
@refreshTable="refreshTable" :table-data="tableList" :table-total="detailInfo.tableTotal">
<div slot="nowPurNum" slot-scope="scope" style="margin: 0 8px;">
<el-select v-model="nowPurNumList[scope.index]" placeholder="请选择" clearable>
<el-option v-for="item in staffList" :key="item.uuid" :label="item.staffName" :value="item.uuid">
......@@ -33,12 +35,17 @@
</div>
<div class="footer">
<el-button @click="handleDetailClose(false)">取消</el-button>
<el-button @click="submit" type="primary" v-preventReClick :loading="$store.state.d2admin.loading.value">确定</el-button>
<el-button @click="submit" type="primary" v-preventReClick
:loading="$store.state.d2admin.loading.value">确定</el-button>
</div>
</div>
</baseDialog>
<card-dialog v-if="cardVisible" :card-visible="cardVisible" :order-info="orderInfo" :selected-list="selectedCardList" @handleClose="handleCardDialog" @handleConfirm="handleCardConfirm"></card-dialog>
<glsk-form-dialog v-if="batchVisible" :selectVisible="batchVisible" :dialogConfig="batchDialogConfig" label-width="200px" :formRules="batchRules" :editData="batchForm" :editFormData="batchEditFormData" :baseData="{ staffList: staffList }" @handleClose="batchDialogVisible" @handleConfirm="handleBatchConfirm"></glsk-form-dialog>
<card-dialog v-if="cardVisible" :card-visible="cardVisible" :order-info="orderInfo" :selected-list="selectedCardList"
@handleClose="handleCardDialog" @handleConfirm="handleCardConfirm"></card-dialog>
<glsk-form-dialog v-if="batchVisible" :selectVisible="batchVisible" :dialogConfig="batchDialogConfig"
label-width="200px" :formRules="batchRules" :editData="batchForm" :editFormData="batchEditFormData"
:baseData="{ staffList: staffList }" @handleClose="batchDialogVisible"
@handleConfirm="handleBatchConfirm"></glsk-form-dialog>
</div>
</template>
......@@ -131,6 +138,11 @@ export default {
prop: 'upgradeGoodsName'
},
{
label: "供应商名称",
prop: 'thirdPartyName',
width: 100,
},
{
label: '产品编码',
prop: 'type'
......@@ -140,11 +152,20 @@ export default {
prop: 'specificationData'
},
{
label: '供应商编码',
prop: 'thirdPartyCode',
width: 100
},
{
label: '适用车型',
addHtml: 'carName',
width: 200
},
{
label: "产品别名",
prop: "purchaseGoodsName",
},
{
label: '系列',
prop: 'goodsName'
},
......@@ -347,7 +368,7 @@ export default {
font-size: 14px;
color: #666666;
> span {
>span {
margin-right: 20px;
margin-bottom: 10px;
}
......
<template>
<div>
<baseDialog :is-show.sync="dialogShow" :config="dialogConfig.setting" :dialog-config="dialogConfig.config" @closeDialog="handleDetailClose(false)">
<baseDialog :is-show.sync="dialogShow" :config="dialogConfig.setting" :dialog-config="dialogConfig.config"
@closeDialog="handleDetailClose(false)">
<div class="edit-order-dialog" v-if="dialogShow">
<div class="addressTitle">
<img src="../images/addressIcon.webp" alt="" class="icon" />
......@@ -23,18 +24,19 @@
{{ detailInfo.purchaseOrderRemark }}</span></span>
</div> -->
<div class="table-class">
<d2-table ref="purchaseOrderDetailTable" :table-params="tableParams" :has-page="hasPage" :table-data="tableList">
<d2-table ref="purchaseOrderDetailTable" :table-params="tableParams" :has-page="hasPage"
:table-data="tableList">
<div slot="nowPurNum" slot-scope="scope" style="margin: 0 8px;">
<!-- 未退货才可以 -->
<div v-if="
(tableList[scope.index].purchaseNumber == 0 ||
tableList[scope.index].purchaseNumber !=
tableList[scope.index].goodsNumber) && scope.scope.refundStatus != 'Y'
">
<div v-if="(tableList[scope.index].purchaseNumber == 0 ||
tableList[scope.index].purchaseNumber !=
tableList[scope.index].goodsNumber) && scope.scope.refundStatus != 'Y'
">
<!-- 判断是否当前账户发货 -->
<el-input v-if="
(isEmptyEdit &&
!tableList[scope.index].shipperUuid) || tableList[scope.index].shipperUuid == userInfo.detail.uuid" :class="{ 'border-red': !nowPurNumList[scope.index] && isSubmit }" placeholder="请输入" v-model="nowPurNumList[scope.index]" @input="(e) => handleInput(e, scope)"></el-input>
<el-input v-if="(isEmptyEdit &&
!tableList[scope.index].shipperUuid) || tableList[scope.index].shipperUuid == userInfo.detail.uuid"
:class="{ 'border-red': !nowPurNumList[scope.index] && isSubmit }" placeholder="请输入"
v-model="nowPurNumList[scope.index]" @input="(e) => handleInput(e, scope)"></el-input>
<!-- <div v-if="detailInfo.tableData[scope.index].shipperUuid != userInfo.detail.uuid">{{ detailInfo.tableData[scope.index].shipper }}</div> -->
<div v-else>
已分配:{{ tableList[scope.index].shipper }}
......@@ -43,13 +45,14 @@
<div v-else>
{{
tableList[scope.index].shipperUuid
? "已分配:" + tableList[scope.index].shipper
: "--"
? "已分配:" + tableList[scope.index].shipper
: "--"
}}
</div>
</div>
<div slot="cardNum" slot-scope="scope" style="margin: 0 8px;">
<div v-if="tableList[scope.index].entityCardFlag != 'Y' || (tableList[scope.index].shipperUuid && tableList[scope.index].shipperUuid != userInfo.detail.uuid)">
<div
v-if="tableList[scope.index].entityCardFlag != 'Y' || (tableList[scope.index].shipperUuid && tableList[scope.index].shipperUuid != userInfo.detail.uuid)">
-
</div>
<div v-else-if="tableList[scope.index].purchaseNumber != tableList[scope.index].goodsNumber">
......@@ -83,10 +86,12 @@
<div class="form-content">
<el-form label-width="100px" :rules="dialogRules" :model="dialogData" ref="delivery-dialog-form">
<el-form-item label="承运公司:" prop="deliveryCompany">
<el-input placeholder="请输入承运物流公司" maxlength="20" v-model.trim="dialogData.deliveryCompany" class="dis-in-block" />
<el-input placeholder="请输入承运物流公司" maxlength="20" v-model.trim="dialogData.deliveryCompany"
class="dis-in-block" />
</el-form-item>
<el-form-item label="承运单号:" prop="deliveryNumber">
<el-input maxlength="50" placeholder="请输入承运物流单号" v-model.trim="dialogData.deliveryNumber" class="dis-in-block" @input="deliveryNumberInput" />
<el-input maxlength="50" placeholder="请输入承运物流单号" v-model.trim="dialogData.deliveryNumber"
class="dis-in-block" @input="deliveryNumberInput" />
</el-form-item>
<el-form-item label="发货时间:" prop="deliveryDate">
<el-date-picker class="dis-in-block" v-model="dialogData.deliveryDate" type="datetime" placeholder="选择日期时间">
......@@ -108,11 +113,15 @@
:value="item.id"
/>
</el-select> -->
<el-select class="dis-in-block" v-model="dialogData.shippingWarehouseId" clearable placeholder="请选择发货仓库" @change="selectChange($event)" @blur="selectBlur" @focus="selectFocus" filterable>
<el-option v-for="(item, index) in shippingWarehouseList" :key="item.id" :label="item.name" :value="item.id">
<el-select class="dis-in-block" v-model="dialogData.shippingWarehouseId" clearable placeholder="请选择发货仓库"
@change="selectChange($event)" @blur="selectBlur" @focus="selectFocus" filterable>
<el-option v-for="(item, index) in shippingWarehouseList" :key="item.id" :label="item.name"
:value="item.id">
<!-- 发货仓库 -->
<div class="flex-option">
<el-input v-show="editOptionIndex == index" :maxlength="10" class="add-option-input" :autofocus="true" @click.stop.native="editOptionFocus" v-model.trim="editOptionValue" size="small" placeholder="请输入" />
<el-input v-show="editOptionIndex == index" :maxlength="10" class="add-option-input"
:autofocus="true" @click.stop.native="editOptionFocus" v-model.trim="editOptionValue" size="small"
placeholder="请输入" />
<span v-show="editOptionIndex == -1 || editOptionIndex != index
" class="add-option-input">{{ item.name }}</span>
<div>
......@@ -122,15 +131,18 @@
<i v-show="shippingWarehouseList.length > 1 &&
editOptionIndex == index
" class="el-icon-check option_icon add_icon" @click.stop="editOptionConfirm(item.id)" />
<i v-if="shippingWarehouseList.length > 1" class="el-icon-close del_icon" @click.stop="delOption(item.id)" />
<i v-if="shippingWarehouseList.length > 1" class="el-icon-close del_icon"
@click.stop="delOption(item.id)" />
</div>
</div>
</el-option>
<div class="add-option">
<div v-if="showOptionInput" class="flex-option">
<el-input class="add-option-input" :maxlength="10" v-model.trim="addOptionValue" size="small" placeholder="请输入" @blur="clearValidateHandle" id="add-option-input" />
<el-input class="add-option-input" :maxlength="10" v-model.trim="addOptionValue" size="small"
placeholder="请输入" @blur="clearValidateHandle" id="add-option-input" />
<div>
<i v-if="addOptionValue" class="el-icon-check option_icon add_icon" @click.stop="addOptionConfirm()" />
<i v-if="addOptionValue" class="el-icon-check option_icon add_icon"
@click.stop="addOptionConfirm()" />
<i class="el-icon-close option_icon del_icon" @click.stop="delOption(undefined)" />
</div>
</div>
......@@ -152,11 +164,13 @@
<div class="footer">
<el-button @click="handleDetailClose(false)">取消</el-button>
<el-button @click="submit" type="primary" v-preventReClick :loading="$store.state.d2admin.loading.value">确定</el-button>
<el-button @click="submit" type="primary" v-preventReClick
:loading="$store.state.d2admin.loading.value">确定</el-button>
</div>
</div>
</baseDialog>
<card-dialog v-if="cardVisible" :card-visible="cardVisible" :order-info="orderInfo" :card-max-num="cardMaxNum" :selected-list="selectedCardList" @handleClose="handleCardDialog" @handleConfirm="handleCardConfirm"></card-dialog>
<card-dialog v-if="cardVisible" :card-visible="cardVisible" :order-info="orderInfo" :card-max-num="cardMaxNum"
:selected-list="selectedCardList" @handleClose="handleCardDialog" @handleConfirm="handleCardConfirm"></card-dialog>
</div>
</template>
......@@ -254,6 +268,11 @@ export default {
prop: 'upgradeGoodsName'
},
{
label: "供应商名称",
prop: 'thirdPartyName',
width: 100,
},
{
label: "产品编码",
prop: "type"
},
......@@ -261,6 +280,11 @@ export default {
label: "规格",
prop: "specificationData"
},
{
label: '供应商编码',
prop: 'thirdPartyCode',
width: 100
},
{
label: '适用车型',
......@@ -309,6 +333,10 @@ export default {
width: 150
},
{
label: "产品别名",
prop: "purchaseGoodsName",
},
{
label: "已发货数量",
prop: "purchaseNumber",
width: 120,
......@@ -661,7 +689,7 @@ export default {
font-size: 14px;
color: #666666;
> span {
>span {
margin-right: 20px;
margin-bottom: 10px;
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!