Commit fa380b99 by wuwx

修改第一轮BUG

1 parent cd3cf761
......@@ -2,7 +2,7 @@
<div>
<el-input @blur.stop="formatPhone" type="textarea" v-model="phones" :placeholder="placeholder"></el-input>
<span v-if="isTip" class="approval-tip" style="margin-left:0;">{{ tip }}</span>
<div style="width: 672px;">
<div style="width: 565px;">
<div :class="['tel-item', !item.valid ? 'valid-tel' : receiveType == 1 ? 'realTel' : 'realNum']" v-for="(item, index) in phoneLists" :key="index">
{{ item.tel }}
<i style="cursor:pointer" class="el-icon-close" @click="delPhone(item.tel)"></i>
......
......@@ -288,7 +288,8 @@ export default {
{
label: '库存数量',
name: 'stock',
addHtml: 'stockNumInput'
addHtml: 'stockNumInput',
isDisabled: false,
},
{
label: '审批要求',
......@@ -419,9 +420,11 @@ export default {
let idxx = this.editFormData.findIndex(item => item.name == 'approveFlag')
let idxxx = this.editFormData.findIndex(item => item.name == 'receiveRule')
let idxxxx = this.editFormData.findIndex(item => item.name == 'receiveDetails')
let idxxxxx = this.editFormData.findIndex(item => item.name == 'stock')
this.editFormData[idx].isHide = newValue == 2
this.editFormData[idxx].isHide = newValue == 2
this.editFormData[idxxx].isHide = newValue == 2
this.editFormData[idxxxxx].isHide = newValue == 2
this.editFormData[idxxxx].isHide = newValue == 1
},
},
......
......@@ -169,12 +169,14 @@ export default {
{
label: '库存数量',
name: 'stock',
type: 'showTxt'
type: 'showTxt',
isHide: false
},
{
label: '审批要求',
name: 'approveFlag',
addHtml: 'approveFlagBlock'
addHtml: 'approveFlagBlock',
isHide: false
},
{
label: '领取规则',
......@@ -214,6 +216,12 @@ export default {
res.data.createdDate = dayjs(res.data.createdDate).format('YYYY-MM-DD HH:mm:ss')
res.data.updatedDate = dayjs(res.data.updatedDate).format('YYYY-MM-DD HH:mm:ss')
this.editForm = res.data
if(res?.data?.grantType==2){
let target = this.editFormData.find(item => item.name == 'stock')
let targets = this.editFormData.find(item => item.name == 'approveFlag')
target.isHide = true
targets.isHide = true
}
let arr = []
res.data.receiveDetails && (arr = res.data.receiveDetails.split(','))
this.receiveDetailList = [...arr]
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!