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 = {
authId: "9100102",
parentId: "91001",
label: "编辑",
handle: "handleEdit"
handle: "handleEdit",
ruleObj: {
attr: "status",
rule: {
0: "待编辑",
1: "编辑"
}
// disabledStatusList: [0]
}
},
{
authId: "9100103",
......
......@@ -36,7 +36,15 @@ export const routerName = {
authId: "9110103",
parentId: "91101",
label: "打印",
handle: "handlePrint"
handle: "handlePrint",
ruleObj: {
attr: "mode",
rule: {
0: "查看",
1: "查看"
},
disabledStatusList: [1]
}
}
],
component: _import("vehicleDamage/vehicleDamageList")
......
......@@ -83,7 +83,7 @@ export default {
},
config: {
title: '采购发货',
width: '1010px'
width: '1050px'
}
},
isSubmit: false,
......@@ -188,7 +188,7 @@ export default {
const _index = scope.index
const _oldVal = this.oldPurNumList[_index] || 0
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))
},
submit() {
......
......@@ -217,14 +217,14 @@ export default {
label: '状态',
prop: 'status',
formatter: (cellValue) => {
return defaultStatusOptions.find(item => item.id == cellValue.status).label || '-'
return defaultStatusOptions.find(item => item.id == cellValue.status)?.label || '-'
},
className: (cellValue) => {
return {
1: 'yellowSpot',
2: 'greenSpot',
3: 'ashSpot',
4: 'ashSpot'
4: 'redSpot'
}[cellValue.status]
}
}
......
<!-- 采购发货 -->
<template>
<d2-container class="container">
<div class="header" slot="header">
<d2-search ref="showSearch" class="show-search" :search-form="searchForm" :form-data="showFormData">
<div class="header"
slot="header">
<d2-search ref="showSearch"
class="show-search"
:search-form="searchForm"
:form-data="showFormData">
</d2-search>
<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 size="small" @click="handleReset">
<el-button size="small"
@click="handleReset">
重置
</el-button>
</div>
......@@ -20,42 +28,74 @@
<auth-button category="Button" />
</span>
<span>
<el-button type="primary" size="mini" @click="handleExport">
<el-button type="primary"
size="mini"
@click="handleExport">
导出
</el-button>
</span>
</d2-table-header>
<d2-table ref="purchaseAndDeliveryTable" :search-form="tableSearchForm" :table-params="tableParams" :table-data="tableData" :get-list-api="getListApi" :before-search-fn="beforeSearchFn">
<div slot="auth-button" slot-scope="scope">
<d2-table ref="purchaseAndDeliveryTable"
: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;">
<auth-button :data="scope.scope" :show-btn-ids="['9090401']" />
<auth-button :data="scope.scope"
:show-btn-ids="['9090401']" />
</span>
<!-- 确认发货 -->
<span v-show="scope.scope.status == 2" style="margin-right: 10px;">
<auth-button :data="scope.scope" :show-btn-ids="['9090402']" />
<span v-show="scope.scope.status == 2"
style="margin-right: 10px;">
<auth-button :data="scope.scope"
:show-btn-ids="['9090402']" />
</span>
<!-- 驳回 -->
<span v-show="scope.scope.deliveryStatus == 1">
<!-- <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>
</div>
</d2-table>
</div>
<orderDeatilDialog :visible.sync="detailVisible" :params-obj="paramsObj"></orderDeatilDialog>
<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">
<orderDeatilDialog :visible.sync="detailVisible"
:params-obj="paramsObj"></orderDeatilDialog>
<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">
<el-form :rules="rejectRules" :model="rejectData" 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 :rules="rejectRules"
:model="rejectData"
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>
</div>
<div class="footer">
<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>
</baseDialog>
</d2-container>
......@@ -239,13 +279,14 @@ export default {
label: '订单状态',
prop: 'status',
formatter: (cellValue) => {
return defaultStatusOptions.find(item => item.id == cellValue.status).label || '-'
return defaultStatusOptions.find(item => item.id == cellValue.status)?.label || '-'
},
className: (cellValue) => {
return {
1: 'yellowSpot',
2: 'greenSpot',
3: 'ashSpot'
3: 'ashSpot',
4: 'redSpot'
}[cellValue.status]
}
},
......
......@@ -236,7 +236,7 @@ export default {
label: '入库状态',
prop: 'putStatus',
formatter: (cellValue) => {
return defaultPutStatusOptions.find(item => item.id == cellValue.putStatus).label || '-'
return defaultPutStatusOptions.find(item => item.id == cellValue.putStatus)?.label || '-'
},
className: (cellValue) => {
return {
......@@ -270,7 +270,8 @@ export default {
return {
1: 'yellowSpot',
2: 'greenSpot',
3: 'ashSpot'
3: 'ashSpot',
4: 'redSpot'
}[cellValue.status]
}
}
......
......@@ -5,7 +5,7 @@
<el-form label-width="154px" :model="storeForm" ref="storeRef" :rules="storeRules">
<el-form-item label="门店名称:">{{ storeForm.merchantName }}</el-form-item>
<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-group>
</el-form-item>
......@@ -139,7 +139,7 @@
</el-form-item>
</el-col>
<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-form-item>
<el-form-item required label="建议售价:" :prop="'vdRuleIntervalList.' + index + '.recommendation'"
......@@ -333,8 +333,16 @@ export default {
},
deleteFormItem(index) {
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))
this.form.vdRuleIntervalList = this.form.vdRuleIntervalList.filter((item, i) => i !== index)
},
addFormItem() {
const vdRuleIntervalList = deepClone(this.form.vdRuleIntervalList)
......
......@@ -76,6 +76,21 @@ export default {
keyFn: this.keyDowmGetList
},
{
label: '配置状态',
name: 'status',
type: 'select',
optionList: [{
label: '待配置',
value: 0
}, {
label: '已配置',
value: 1
}],
optionId: 'value',
optionLabel: 'label'
// optionsName: 'productTypeList'
},
{
label: "创建时间",
name: "createTime",
type: "datePicker",
......
......@@ -113,7 +113,7 @@ export default {
label: '所属门店',
name: 'merchantId',
type: 'select',
noDataText: '请先选择仓库',
noDataText: '请先选择所属仓库',
optionList: [],
optionId: 'merchantId',
optionLabel: 'merchantName',
......
......@@ -118,7 +118,7 @@ export default {
label: '出库门店',
name: 'merchantId',
type: 'select',
noDataText: '请先选择仓库',
noDataText: '请先选择出库仓库',
optionList: [],
optionId: 'merchantId',
optionLabel: 'merchantName',
......
......@@ -146,7 +146,7 @@ export default {
label: '入库门店',
name: 'merchantId',
type: 'select',
noDataText: '请先选择仓库',
noDataText: '请先选择入库仓库',
optionList: [],
optionId: 'merchantId',
optionLabel: 'merchantName',
......
......@@ -344,6 +344,7 @@ export default {
// 判空处理
// result.goodsTypeGroupRules = [...result?.goodsTypeGroupRules, ...result?.goodsTypeGroupRules, ...result?.goodsTypeGroupRules]
const goodsTypeGroupRules = result?.goodsTypeGroupRules
result = result || this.financialObj
// result.autoFlag = null
// result.settleTimeType = null
// 解决老财务规则只做了一部分的问题 就不取老的了
......
......@@ -516,6 +516,8 @@ export default {
}
})
this.getSelectingList(upgradeArr)
} else {
this.getSelectingList()
}
},
// 显示smcode弹框
......
......@@ -84,14 +84,14 @@ export default {
label: '采购模式',
prop: 'merchantName',
formatter: (cellValue) => {
return this.procureModeList[cellValue?.procurementInfoDTO?.procurementType - 1]?.confName || '-'
return this.procureModeList[cellValue?.procurementType - 1]?.confName || '-'
}
}, {
label: '发货主体',
prop: 'merchantId',
width: '200',
formatter: (cellValue) => {
return cellValue?.procurementInfoDTO?.shippingEntity || '-'
return cellValue?.shippingEntity || '-'
}
}, {
label: '下级园区店',
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!