Commit 8a83b2e2 by 王琦琳

Merge branch 'dev_v4.21.1' into 'dev_v4.22.0'

Dev v4.21.1

See merge request !182
2 parents d048d49b ef748bf0
...@@ -38,7 +38,15 @@ export const routerName = { ...@@ -38,7 +38,15 @@ export const routerName = {
authId: "9100102", authId: "9100102",
parentId: "91001", parentId: "91001",
label: "编辑", label: "编辑",
handle: "handleEdit" handle: "handleEdit",
ruleObj: {
attr: "status",
rule: {
0: "待编辑",
1: "编辑"
}
// disabledStatusList: [0]
}
}, },
{ {
authId: "9100103", authId: "9100103",
......
...@@ -36,7 +36,15 @@ export const routerName = { ...@@ -36,7 +36,15 @@ export const routerName = {
authId: "9110103", authId: "9110103",
parentId: "91101", parentId: "91101",
label: "打印", label: "打印",
handle: "handlePrint" handle: "handlePrint",
ruleObj: {
attr: "mode",
rule: {
0: "查看",
1: "查看"
},
disabledStatusList: [1]
}
} }
], ],
component: _import("vehicleDamage/vehicleDamageList") component: _import("vehicleDamage/vehicleDamageList")
......
...@@ -83,7 +83,7 @@ export default { ...@@ -83,7 +83,7 @@ export default {
}, },
config: { config: {
title: '采购发货', title: '采购发货',
width: '1010px' width: '1050px'
} }
}, },
isSubmit: false, isSubmit: false,
...@@ -188,7 +188,7 @@ export default { ...@@ -188,7 +188,7 @@ export default {
const _index = scope.index const _index = scope.index
const _oldVal = this.oldPurNumList[_index] || 0 const _oldVal = this.oldPurNumList[_index] || 0
const _maxVal = _row.goodsNumber - _row.purchaseNumber const _maxVal = _row.goodsNumber - _row.purchaseNumber
this.nowPurNumList[_index] = limitPrice(val, _oldVal, 2, 0, 0, _maxVal) this.nowPurNumList[_index] = limitPrice(val, _oldVal, 9999, 0, 0, _maxVal)
this.oldPurNumList = JSON.parse(JSON.stringify(this.nowPurNumList)) this.oldPurNumList = JSON.parse(JSON.stringify(this.nowPurNumList))
}, },
submit() { submit() {
......
...@@ -217,14 +217,14 @@ export default { ...@@ -217,14 +217,14 @@ export default {
label: '状态', label: '状态',
prop: 'status', prop: 'status',
formatter: (cellValue) => { formatter: (cellValue) => {
return defaultStatusOptions.find(item => item.id == cellValue.status).label || '-' return defaultStatusOptions.find(item => item.id == cellValue.status)?.label || '-'
}, },
className: (cellValue) => { className: (cellValue) => {
return { return {
1: 'yellowSpot', 1: 'yellowSpot',
2: 'greenSpot', 2: 'greenSpot',
3: 'ashSpot', 3: 'ashSpot',
4: 'ashSpot' 4: 'redSpot'
}[cellValue.status] }[cellValue.status]
} }
} }
......
<!-- 采购发货 --> <!-- 采购发货 -->
<template> <template>
<d2-container class="container"> <d2-container class="container">
<div class="header" slot="header"> <div class="header"
<d2-search ref="showSearch" class="show-search" :search-form="searchForm" :form-data="showFormData"> slot="header">
<d2-search ref="showSearch"
class="show-search"
:search-form="searchForm"
:form-data="showFormData">
</d2-search> </d2-search>
<div class="up-btns"> <div class="up-btns">
<el-button :id="tableParams.btnId" size="small" type="primary" handle> <el-button :id="tableParams.btnId"
size="small"
type="primary"
handle>
查询 查询
</el-button> </el-button>
<el-button size="small" @click="handleReset"> <el-button size="small"
@click="handleReset">
重置 重置
</el-button> </el-button>
</div> </div>
...@@ -20,42 +28,74 @@ ...@@ -20,42 +28,74 @@
<auth-button category="Button" /> <auth-button category="Button" />
</span> </span>
<span> <span>
<el-button type="primary" size="mini" @click="handleExport"> <el-button type="primary"
size="mini"
@click="handleExport">
导出 导出
</el-button> </el-button>
</span> </span>
</d2-table-header> </d2-table-header>
<d2-table ref="purchaseAndDeliveryTable" :search-form="tableSearchForm" :table-params="tableParams" :table-data="tableData" :get-list-api="getListApi" :before-search-fn="beforeSearchFn"> <d2-table ref="purchaseAndDeliveryTable"
<div slot="auth-button" slot-scope="scope"> :search-form="tableSearchForm"
:table-params="tableParams"
:table-data="tableData"
:get-list-api="getListApi"
:before-search-fn="beforeSearchFn">
<div slot="auth-button"
slot-scope="scope">
<!-- 查看 --> <!-- 查看 -->
<span style="margin-right: 10px;"> <span style="margin-right: 10px;">
<auth-button :data="scope.scope" :show-btn-ids="['9090401']" /> <auth-button :data="scope.scope"
:show-btn-ids="['9090401']" />
</span> </span>
<!-- 确认发货 --> <!-- 确认发货 -->
<span v-show="scope.scope.status == 2" style="margin-right: 10px;"> <span v-show="scope.scope.status == 2"
<auth-button :data="scope.scope" :show-btn-ids="['9090402']" /> style="margin-right: 10px;">
<auth-button :data="scope.scope"
:show-btn-ids="['9090402']" />
</span> </span>
<!-- 驳回 --> <!-- 驳回 -->
<span v-show="scope.scope.deliveryStatus == 1"> <span v-show="scope.scope.deliveryStatus == 1">
<!-- <el-button :data="scope.scope" type="text" @click="handleReject(scope.scope)">驳回</el-button> --> <!-- <el-button :data="scope.scope" type="text" @click="handleReject(scope.scope)">驳回</el-button> -->
<auth-button :data="scope.scope" :show-btn-ids="['9090403']" /> <auth-button :data="scope.scope"
:show-btn-ids="['9090403']" />
</span> </span>
</div> </div>
</d2-table> </d2-table>
</div> </div>
<orderDeatilDialog :visible.sync="detailVisible" :params-obj="paramsObj"></orderDeatilDialog> <orderDeatilDialog :visible.sync="detailVisible"
<EditOrderDialog v-if="editVisible" :visible.sync="editVisible" :params-obj="dialogData" @editClose="editClose"></EditOrderDialog> :params-obj="paramsObj"></orderDeatilDialog>
<baseDialog v-if="rejectVisible" :is-show.sync="rejectVisible" :config="rejectConfig.setting" :dialog-config="rejectConfig.config" @closeDialog="handleRejectClose"> <EditOrderDialog v-if="editVisible"
:visible.sync="editVisible"
:params-obj="dialogData"
@editClose="editClose"></EditOrderDialog>
<baseDialog v-if="rejectVisible"
:is-show.sync="rejectVisible"
:config="rejectConfig.setting"
:dialog-config="rejectConfig.config"
@closeDialog="handleRejectClose">
<div class="reject-dialog"> <div class="reject-dialog">
<el-form :rules="rejectRules" :model="rejectData" label-width="150px" ref="delivery-dialog-form"> <el-form :rules="rejectRules"
<el-form-item label="驳回原因:" prop="rejectCause"> :model="rejectData"
<el-input type="textarea" placeholder="请输入驳回原因" maxlength="50" show-word-limit v-model.trim="rejectData.rejectCause" class="dis-in-block reject-input" /> label-width="150px"
ref="delivery-dialog-form">
<el-form-item label="驳回原因:"
prop="rejectCause">
<el-input type="textarea"
placeholder="请输入驳回原因"
maxlength="50"
show-word-limit
v-model.trim="rejectData.rejectCause"
class="dis-in-block reject-input" />
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>
<div class="footer"> <div class="footer">
<el-button @click="handleRejectClose">取消</el-button> <el-button @click="handleRejectClose">取消</el-button>
<el-button @click="handleRejectConfirm" type="primary" v-preventReClick :loading="$store.state.d2admin.loading.value">确认</el-button> <el-button @click="handleRejectConfirm"
type="primary"
v-preventReClick
:loading="$store.state.d2admin.loading.value">确认</el-button>
</div> </div>
</baseDialog> </baseDialog>
</d2-container> </d2-container>
...@@ -239,13 +279,14 @@ export default { ...@@ -239,13 +279,14 @@ export default {
label: '订单状态', label: '订单状态',
prop: 'status', prop: 'status',
formatter: (cellValue) => { formatter: (cellValue) => {
return defaultStatusOptions.find(item => item.id == cellValue.status).label || '-' return defaultStatusOptions.find(item => item.id == cellValue.status)?.label || '-'
}, },
className: (cellValue) => { className: (cellValue) => {
return { return {
1: 'yellowSpot', 1: 'yellowSpot',
2: 'greenSpot', 2: 'greenSpot',
3: 'ashSpot' 3: 'ashSpot',
4: 'redSpot'
}[cellValue.status] }[cellValue.status]
} }
}, },
......
...@@ -236,7 +236,7 @@ export default { ...@@ -236,7 +236,7 @@ export default {
label: '入库状态', label: '入库状态',
prop: 'putStatus', prop: 'putStatus',
formatter: (cellValue) => { formatter: (cellValue) => {
return defaultPutStatusOptions.find(item => item.id == cellValue.putStatus).label || '-' return defaultPutStatusOptions.find(item => item.id == cellValue.putStatus)?.label || '-'
}, },
className: (cellValue) => { className: (cellValue) => {
return { return {
...@@ -270,7 +270,8 @@ export default { ...@@ -270,7 +270,8 @@ export default {
return { return {
1: 'yellowSpot', 1: 'yellowSpot',
2: 'greenSpot', 2: 'greenSpot',
3: 'ashSpot' 3: 'ashSpot',
4: 'redSpot'
}[cellValue.status] }[cellValue.status]
} }
} }
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<el-form label-width="154px" :model="storeForm" ref="storeRef" :rules="storeRules"> <el-form label-width="154px" :model="storeForm" ref="storeRef" :rules="storeRules">
<el-form-item label="门店名称:">{{ storeForm.merchantName }}</el-form-item> <el-form-item label="门店名称:">{{ storeForm.merchantName }}</el-form-item>
<el-form-item label="权益销售模式:"> <el-form-item label="权益销售模式:">
<el-radio-group v-model="storeForm.mode"> <el-radio-group v-model="storeForm.mode" :disabled="isEdit">
<el-radio v-for="(item, index) in modeList" :label="item.value" :key="index">{{ item.label }}</el-radio> <el-radio v-for="(item, index) in modeList" :label="item.value" :key="index">{{ item.label }}</el-radio>
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
...@@ -139,7 +139,7 @@ ...@@ -139,7 +139,7 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="4" class="label"> <el-col :span="4" class="label">
<el-button v-show="!isEdit" @click="deleteFormItem(index)">删除</el-button> <el-button v-show="!isEdit && index != 0" @click="deleteFormItem(index)">删除</el-button>
</el-col> </el-col>
</el-form-item> </el-form-item>
<el-form-item required label="建议售价:" :prop="'vdRuleIntervalList.' + index + '.recommendation'" <el-form-item required label="建议售价:" :prop="'vdRuleIntervalList.' + index + '.recommendation'"
...@@ -333,8 +333,16 @@ export default { ...@@ -333,8 +333,16 @@ export default {
}, },
deleteFormItem(index) { deleteFormItem(index) {
if (index == 0 && this.form.vdRuleIntervalList.length == 1) return this.$message.error('至少保留一条价格区间') if (index == 0 && this.form.vdRuleIntervalList.length == 1) return this.$message.error('至少保留一条价格区间')
this.$confirm('是否确认删除?', '提示', {
confirmButtonText: '删除',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.form.vdRuleIntervalList = this.form.vdRuleIntervalList.filter((item, i) => i !== index)
}).catch(err => {
console.log(err)
})
// console.log(this.form.vdRuleIntervalList.filter((item, i) => i !== index)) // console.log(this.form.vdRuleIntervalList.filter((item, i) => i !== index))
this.form.vdRuleIntervalList = this.form.vdRuleIntervalList.filter((item, i) => i !== index)
}, },
addFormItem() { addFormItem() {
const vdRuleIntervalList = deepClone(this.form.vdRuleIntervalList) const vdRuleIntervalList = deepClone(this.form.vdRuleIntervalList)
......
...@@ -76,6 +76,21 @@ export default { ...@@ -76,6 +76,21 @@ export default {
keyFn: this.keyDowmGetList keyFn: this.keyDowmGetList
}, },
{ {
label: '配置状态',
name: 'status',
type: 'select',
optionList: [{
label: '待配置',
value: 0
}, {
label: '已配置',
value: 1
}],
optionId: 'value',
optionLabel: 'label'
// optionsName: 'productTypeList'
},
{
label: "创建时间", label: "创建时间",
name: "createTime", name: "createTime",
type: "datePicker", type: "datePicker",
......
...@@ -113,7 +113,7 @@ export default { ...@@ -113,7 +113,7 @@ export default {
label: '所属门店', label: '所属门店',
name: 'merchantId', name: 'merchantId',
type: 'select', type: 'select',
noDataText: '请先选择仓库', noDataText: '请先选择所属仓库',
optionList: [], optionList: [],
optionId: 'merchantId', optionId: 'merchantId',
optionLabel: 'merchantName', optionLabel: 'merchantName',
......
...@@ -118,7 +118,7 @@ export default { ...@@ -118,7 +118,7 @@ export default {
label: '出库门店', label: '出库门店',
name: 'merchantId', name: 'merchantId',
type: 'select', type: 'select',
noDataText: '请先选择仓库', noDataText: '请先选择出库仓库',
optionList: [], optionList: [],
optionId: 'merchantId', optionId: 'merchantId',
optionLabel: 'merchantName', optionLabel: 'merchantName',
......
...@@ -146,7 +146,7 @@ export default { ...@@ -146,7 +146,7 @@ export default {
label: '入库门店', label: '入库门店',
name: 'merchantId', name: 'merchantId',
type: 'select', type: 'select',
noDataText: '请先选择仓库', noDataText: '请先选择入库仓库',
optionList: [], optionList: [],
optionId: 'merchantId', optionId: 'merchantId',
optionLabel: 'merchantName', optionLabel: 'merchantName',
......
...@@ -344,6 +344,7 @@ export default { ...@@ -344,6 +344,7 @@ export default {
// 判空处理 // 判空处理
// result.goodsTypeGroupRules = [...result?.goodsTypeGroupRules, ...result?.goodsTypeGroupRules, ...result?.goodsTypeGroupRules] // result.goodsTypeGroupRules = [...result?.goodsTypeGroupRules, ...result?.goodsTypeGroupRules, ...result?.goodsTypeGroupRules]
const goodsTypeGroupRules = result?.goodsTypeGroupRules const goodsTypeGroupRules = result?.goodsTypeGroupRules
result = result || this.financialObj
// result.autoFlag = null // result.autoFlag = null
// result.settleTimeType = null // result.settleTimeType = null
// 解决老财务规则只做了一部分的问题 就不取老的了 // 解决老财务规则只做了一部分的问题 就不取老的了
......
...@@ -516,6 +516,8 @@ export default { ...@@ -516,6 +516,8 @@ export default {
} }
}) })
this.getSelectingList(upgradeArr) this.getSelectingList(upgradeArr)
} else {
this.getSelectingList()
} }
}, },
// 显示smcode弹框 // 显示smcode弹框
......
...@@ -84,14 +84,14 @@ export default { ...@@ -84,14 +84,14 @@ export default {
label: '采购模式', label: '采购模式',
prop: 'merchantName', prop: 'merchantName',
formatter: (cellValue) => { formatter: (cellValue) => {
return this.procureModeList[cellValue?.procurementInfoDTO?.procurementType - 1]?.confName || '-' return this.procureModeList[cellValue?.procurementType - 1]?.confName || '-'
} }
}, { }, {
label: '发货主体', label: '发货主体',
prop: 'merchantId', prop: 'merchantId',
width: '200', width: '200',
formatter: (cellValue) => { formatter: (cellValue) => {
return cellValue?.procurementInfoDTO?.shippingEntity || '-' return cellValue?.shippingEntity || '-'
} }
}, { }, {
label: '下级园区店', label: '下级园区店',
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!