Browse Source

排产管理业务和流程中增加采购类型、排产类型改为采购原因

zhanglei
yunuo970428 3 years ago
parent
commit
09832fcba5
  1. 36
      anrui-scm/anrui-scm-ui/src/views/supplychain/cheliangpaichan/cheliangpaichan.vue
  2. 37
      anrui-scm/anrui-scm-ui/src/views/supplychain/cheliangpaichan/cheliangpaichanAdd.vue
  3. 9
      anrui-scm/anrui-scm-ui/src/views/supplychain/cheliangpaichan/cheliangpaichanInfo.vue
  4. 9
      anrui-scm/anrui-scm-ui/src/views/workFlow/paichanguanliFlow/paichanguanli/cheliangpaichanDaiBanInfo.vue
  5. 35
      anrui-scm/anrui-scm-ui/src/views/workFlow/paichanguanliFlow/paichanguanli/cheliangpaichanEdit.vue
  6. 9
      anrui-scm/anrui-scm-ui/src/views/workFlow/paichanguanliFlow/paichanguanli/cheliangpaichanYiBanInfo.vue

36
anrui-scm/anrui-scm-ui/src/views/supplychain/cheliangpaichan/cheliangpaichan.vue

@ -13,8 +13,15 @@
<div class="line"></div>
<el-date-picker value-format="yyyy-MM-dd" v-model="queryParams.params.applicationDateEnd" clearable style="width: 160px;" type="date" placeholder="结束日期"/>
</el-form-item>
<el-form-item label="车型">
<el-input v-model="queryParams.params.modelName" placeholder="请输入车型" clearable/>
<el-form-item label="采购类型">
<el-select v-model="queryParams.params.applyTypeKey" placeholder="请选择" clearable filterable>
<el-option v-for="item in applyType_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictKey"></el-option>
</el-select>
</el-form-item>
<el-form-item label="采购原因">
<el-select v-model="queryParams.params.schedulingTypeKey" placeholder="请选择" clearable filterable>
<el-option v-for="item in schedulingType_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictKey"></el-option>
</el-select>
</el-form-item>
</el-form>
<div class="btn" style="text-align: center;">
@ -44,7 +51,7 @@
<span v-else @click="flowRecord(scope.row)" class="bluezi">{{ scope.row.nodeState }}</span>
</template>
</el-table-column>
<el-table-column width="150" prop="schedulingType" label="排产类型" align="center"/>
<el-table-column width="150" prop="schedulingType" label="采购原因" align="center"/>
<el-table-column width="200" prop="applicationCode" label="申请编号" align="center"/>
<el-table-column width="150" prop="applicationDate" label="申请日期" align="center"/>
<el-table-column width="150" prop="createOrgName" label="分公司" align="center"/>
@ -127,6 +134,8 @@ export default {
// sid
sids: [], // SID
sides: '', // sid
schedulingType_list: [],
applyType_list: [],
queryParams: {
current: 1,
size: 10,
@ -134,7 +143,8 @@ export default {
params: {
applicationDateStart: '',
applicationDateEnd: '',
modelName: '', //
applyTypeKey: '',
schedulingTypeKey: '',
userSid: ''
}
},
@ -142,6 +152,7 @@ export default {
}
},
created() {
this.init()
this.loadList()
},
mounted() {
@ -179,6 +190,20 @@ export default {
}
this.url = '/#/flow/flowRecordForBusiness?data=' + encodeURI((JSON.stringify(params)))
},
init() {
req.pullDown({ type: 'schedulingType' }).then((res) => {
if (res.success) {
this.schedulingType_list = res.data
console.log('下拉框请求111', res.data)
}
})
req.pullDown({ type: 'applyType' }).then((res) => {
if (res.success) {
this.applyType_list = res.data
console.log('下拉框请求111', res.data)
}
})
},
btnHandle(btnKey) {
console.log('XXXXXXXXXXXXXXX' + btnKey)
switch (btnKey) {
@ -234,7 +259,8 @@ export default {
params: {
applicationDateStart: '',
applicationDateEnd: '',
modelName: '', //
applyTypeKey: '',
schedulingTypeKey: '',
userSid: ''
}
}

37
anrui-scm/anrui-scm-ui/src/views/supplychain/cheliangpaichan/cheliangpaichanAdd.vue

@ -34,8 +34,16 @@
</el-col>
</el-row>
<el-row class="rowStyle">
<el-col :span="24" class="colStyle">
<div class="span-sty spanOneWidth"><span>排产类型:</span></div>
<el-col :span="8" class="colStyle">
<div class="span-sty spanOneWidth"><span>采购类型:</span></div>
<el-form-item>
<el-select v-model="formobj.applyType" placeholder="请选择" @change="changeApplyType" clearable class="addinputInfo addinputOne">
<el-option v-for="item in applyType_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictValue"></el-option>
</el-select>
</el-form-item>
</el-col>
<el-col :span="16" class="colStyle">
<div class="span-sty spanOneWidth"><span>采购原因:</span></div>
<el-form-item>
<el-select v-model="formobj.schedulingType" placeholder="请选择" @change="changeSchedulingType" clearable class="addinputInfo addinputOne">
<el-option v-for="item in schedulingType_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictValue"></el-option>
@ -150,6 +158,7 @@ export default {
tableKey: 0,
//
schedulingType_list: [], // 使
applyType_list: [],
isRead: false,
//
formobj: {
@ -159,7 +168,9 @@ export default {
createByName: '', //
applicationCode: '', //
applicationDate: '', //
schedulingType: '', //
applyType: '', //
applyTypeKey: '',
schedulingType: '', //
schedulingTypeKey: '',
remarks: '', //
currentAmount: '', //
@ -179,7 +190,11 @@ export default {
req.pullDown({ type: 'schedulingType' }).then((res) => {
if (res.success) {
this.schedulingType_list = res.data
console.log('下拉框请求111', res.data)
}
})
req.pullDown({ type: 'applyType' }).then((res) => {
if (res.success) {
this.applyType_list = res.data
}
})
},
@ -285,6 +300,18 @@ export default {
})
}
},
changeApplyType(value) {
let bb = null
this.applyType_list.forEach((e) => {
if (e.dictValue === value) {
bb = {
key: e.dictKey,
value: e.dictValue
}
}
})
this.formobj.applyTypeKey = bb.key
},
changeSchedulingType(value) {
let bb = null
this.schedulingType_list.forEach((e) => {
@ -408,6 +435,8 @@ export default {
// ===
handleReturn(isreload) {
if (isreload === 'true') this.$emit('reloadlist')
this.formobj.applyType = ''
this.formobj.applyTypeKey = ''
this.formobj.schedulingType = '' //
this.formobj.schedulingTypeKey = ''
this.formobj.remarks = '' //

9
anrui-scm/anrui-scm-ui/src/views/supplychain/cheliangpaichan/cheliangpaichanInfo.vue

@ -30,8 +30,13 @@
</el-col>
</el-row>
<el-row class="rowStyle">
<el-col :span="24" class="colStyle">
<div class="span-sty spanOneWidth"><span>排产类型:</span></div>
<el-col :span="8" class="colStyle">
<div class="span-sty spanOneWidth"><span>采购类型:</span></div>
<el-form-item><span class="addinputInfo addinputOne">{{ formobj.applyType }}</span>
</el-form-item>
</el-col>
<el-col :span="16" class="colStyle">
<div class="span-sty spanOneWidth"><span>采购原因:</span></div>
<el-form-item><span class="addinputInfo addinputOne">{{ formobj.schedulingType }}</span>
</el-form-item>
</el-col>

9
anrui-scm/anrui-scm-ui/src/views/workFlow/paichanguanliFlow/paichanguanli/cheliangpaichanDaiBanInfo.vue

@ -32,8 +32,13 @@
</el-col>
</el-row>
<el-row class="rowStyle">
<el-col :span="24" class="colStyle">
<div class="span-sty spanOneWidth"><span>排产类型:</span></div>
<el-col :span="8" class="colStyle">
<div class="span-sty spanOneWidth"><span>采购类型:</span></div>
<el-form-item><span class="addinputInfo addinputOne">{{ formobj.applyType }}</span>
</el-form-item>
</el-col>
<el-col :span="16" class="colStyle">
<div class="span-sty spanOneWidth"><span>采购原因:</span></div>
<el-form-item><span class="addinputInfo addinputOne">{{ formobj.schedulingType }}</span>
</el-form-item>
</el-col>

35
anrui-scm/anrui-scm-ui/src/views/workFlow/paichanguanliFlow/paichanguanli/cheliangpaichanEdit.vue

@ -33,8 +33,16 @@
</el-col>
</el-row>
<el-row class="rowStyle">
<el-col :span="24" class="colStyle">
<div class="span-sty spanOneWidth"><span>排产类型:</span></div>
<el-col :span="8" class="colStyle">
<div class="span-sty spanOneWidth"><span>采购类型:</span></div>
<el-form-item>
<el-select v-model="formobj.applyType" placeholder="请选择" @change="changeApplyType" clearable class="addinputInfo addinputOne">
<el-option v-for="item in applyType_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictValue"></el-option>
</el-select>
</el-form-item>
</el-col>
<el-col :span="16" class="colStyle">
<div class="span-sty spanOneWidth"><span>采购原因:</span></div>
<el-form-item>
<el-select v-model="formobj.schedulingType" placeholder="请选择" @change="changeSchedulingType" clearable class="addinputInfo addinputOne">
<el-option v-for="item in schedulingType_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictValue"></el-option>
@ -148,6 +156,7 @@ export default {
tableKey: 0,
//
schedulingType_list: [], // 使
applyType_list: [],
isRead: false,
//
formobj: {
@ -157,7 +166,9 @@ export default {
createByName: '', //
applicationCode: '', //
applicationDate: '', //
schedulingType: '', //
applyType: '', //
applyTypeKey: '',
schedulingType: '', //
schedulingTypeKey: '',
remarks: '', //
currentAmount: '', //
@ -196,7 +207,11 @@ export default {
req.pullDown({ type: 'schedulingType' }).then((res) => {
if (res.success) {
this.schedulingType_list = res.data
console.log('下拉框请求111', res.data)
}
})
req.pullDown({ type: 'applyType' }).then((res) => {
if (res.success) {
this.applyType_list = res.data
}
})
},
@ -263,6 +278,18 @@ export default {
})
}
},
changeApplyType(value) {
let bb = null
this.applyType_list.forEach((e) => {
if (e.dictValue === value) {
bb = {
key: e.dictKey,
value: e.dictValue
}
}
})
this.formobj.applyTypeKey = bb.key
},
changeSchedulingType(value) {
let bb = null
this.schedulingType_list.forEach((e) => {

9
anrui-scm/anrui-scm-ui/src/views/workFlow/paichanguanliFlow/paichanguanli/cheliangpaichanYiBanInfo.vue

@ -30,8 +30,13 @@
</el-col>
</el-row>
<el-row class="rowStyle">
<el-col :span="24" class="colStyle">
<div class="span-sty spanOneWidth"><span>排产类型:</span></div>
<el-col :span="8" class="colStyle">
<div class="span-sty spanOneWidth"><span>采购类型:</span></div>
<el-form-item><span class="addinputInfo addinputOne">{{ formobj.applyType }}</span>
</el-form-item>
</el-col>
<el-col :span="16" class="colStyle">
<div class="span-sty spanOneWidth"><span>采购原因:</span></div>
<el-form-item><span class="addinputInfo addinputOne">{{ formobj.schedulingType }}</span>
</el-form-item>
</el-col>

Loading…
Cancel
Save