Browse Source

调整采购订单、日常巡检

zhanglei
yunuo970428 3 years ago
parent
commit
9ea85c03b0
  1. 1
      anrui-scm/anrui-scm-ui/src/components/uploadFile/FaImages.vue
  2. 1
      anrui-scm/anrui-scm-ui/src/views/cheliang/cheliangcaigou/cheliangcaigou.vue
  3. 22
      anrui-scm/anrui-scm-ui/src/views/cheliang/cheliangcaigou/cheliangcaigouAdd.vue
  4. 25
      anrui-scm/anrui-scm-ui/src/views/cheliang/cheliangcaigou/cheliangcaigouInfo.vue
  5. 2
      anrui-scm/anrui-scm-ui/src/views/kucunguanli/cheliangweihu/richangxunjian/xunjiandan.vue
  6. 15
      anrui-scm/anrui-scm-ui/src/views/workFlow/tiaojiaguanliFlow/tiaojiaguanli/tiaojiaDaiBanInfo.vue

1
anrui-scm/anrui-scm-ui/src/components/uploadFile/FaImages.vue

@ -148,6 +148,7 @@ export default {
this.$emit('fileChange', this.files)
},
handlePictureCardPreview(file) {
this.dialogVisible = true
this.dialogImageUrl = file.url
},
//

1
anrui-scm/anrui-scm-ui/src/views/cheliang/cheliangcaigou/cheliangcaigou.vue

@ -56,6 +56,7 @@
<el-table-column prop="orderDate" label="采购订单日期" align="center" width="120"/>
<el-table-column prop="orderType" label="采购订单类型" align="center" width="120"/>
<el-table-column prop="applicationCode" label="排产申请编号" align="center" width="200"/>
<el-table-column prop="subscriptionDate" label="认款日期" align="center" width="100"/>
<el-table-column prop="insideCode" label="内部编码" header-align="center" align="left" width="120"/>
<el-table-column prop="vehicleName" label="车型" align="center" width="200"/>
<el-table-column prop="platformNo" label="台数" align="center" width="80"/>

22
anrui-scm/anrui-scm-ui/src/views/cheliang/cheliangcaigou/cheliangcaigouAdd.vue

@ -1,5 +1,6 @@
<template>
<div>
<div class="app-container">
<div v-show="viewState == 1">
<!--标题按钮部分开始-->
<div class="tab-header webtop">
<!--标题-->
@ -25,7 +26,10 @@
</el-col>
<el-col :span="12">
<div class="span-sty spanOneWidth"><span>排产申请编号</span></div>
<el-form-item><span class="addinputInfo addinputOne">{{ formobj.applicationCode }}</span></el-form-item>
<el-form-item>
<span class="addinputInfo addinputOne">{{ formobj.applicationCode }}</span>
<el-button type="primary" size="small" style="margin-left: 10px" @click="handleLook(formobj.purchaseRequisitionSid)">查看</el-button>
</el-form-item>
</el-col>
</el-row>
<el-row>
@ -79,15 +83,22 @@
</div>
<!--End 添加修改部分-->
</div>
<cheliangpaichanInfo v-show="viewState == 2" ref="divPaiChan" @doback="resetState"/>
</div>
</template>
<script>
import req from '@/api/cheliang/busvehicleorder'
import cheliangpaichanInfo from '../../../views/supplychain/cheliangpaichan/cheliangpaichanInfo'
export default {
name: 'cheliangcaigouAdd',
components: {
cheliangpaichanInfo
},
data() {
return {
viewState: 1,
viewTitle: '【编辑】采购订单',
formobj: {
applicationCode: '',
@ -180,6 +191,13 @@ export default {
return false
}
})
},
handleLook(sid) {
this.viewState = 2
this.$refs['divPaiChan'].showInfo(sid)
},
resetState() {
this.viewState = 1
}
}
}

25
anrui-scm/anrui-scm-ui/src/views/cheliang/cheliangcaigou/cheliangcaigouInfo.vue

@ -1,5 +1,6 @@
<template>
<div>
<div class="app-container">
<div v-show="viewState == 1">
<!--标题按钮部分开始-->
<div class="tab-header webtop">
<!--标题-->
@ -23,7 +24,10 @@
</el-col>
<el-col :span="12">
<div class="span-sty spanOneWidth"><span>排产申请编号</span></div>
<el-form-item><span class="addinputInfo addinputOne">{{ formobj.applicationCode }}</span></el-form-item>
<el-form-item>
<span class="addinputInfo addinputOne">{{ formobj.applicationCode }}</span>
<el-button type="primary" size="small" style="margin-left: 10px" @click="handleLook(formobj.purchaseRequisitionSid)">查看</el-button>
</el-form-item>
</el-col>
</el-row>
<el-row>
@ -77,15 +81,22 @@
</div>
<!--End 添加修改部分-->
</div>
<cheliangpaichanInfo v-show="viewState == 2" ref="divPaiChan" @doback="resetState"/>
</div>
</template>
<script>
import req from '@/api/cheliang/busvehicleorder'
import cheliangpaichanInfo from '../../../views/supplychain/cheliangpaichan/cheliangpaichanInfo'
export default {
name: 'cheliangcaigouAdd',
components: {
cheliangpaichanInfo
},
data() {
return {
viewState: 1,
viewTitle: '采购订单详情',
formobj: {},
rules: {},
@ -104,10 +115,16 @@ export default {
req.fetchBySid(row.sid).then(resp => {
const vdata = resp.data
this.formobj = vdata
})
.catch(e => {
}).catch(e => {
this.formobj = row
})
},
handleLook(sid) {
this.viewState = 2
this.$refs['divPaiChan'].showInfo(sid)
},
resetState() {
this.viewState = 1
}
}
}

2
anrui-scm/anrui-scm-ui/src/views/kucunguanli/cheliangweihu/richangxunjian/xunjiandan.vue

@ -30,7 +30,7 @@
<el-col :span="24">
<div class="span-sty spanOneWidth"><span>巡检情况说明</span></div>
<el-form-item>
<el-input v-model="formobj.situationExplain" class="addinputw addinputwOne" style="width: 80%" type="textarea" resize="none" placeholder="" :autosize="{ minRows: 2, maxRows: 10}" clearable></el-input>
<el-input v-model="formobj.situationExplain" class="addinputw addinputwOne" style="width: 80%" type="textarea" resize="none" placeholder="对车辆外观、车辆状态、电瓶情况、箱内燃油情况等进行说明" :autosize="{ minRows: 2, maxRows: 10}" clearable></el-input>
</el-form-item>
</el-col>
</el-row>

15
anrui-scm/anrui-scm-ui/src/views/workFlow/tiaojiaguanliFlow/tiaojiaguanli/tiaojiaDaiBanInfo.vue

@ -79,7 +79,7 @@
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<el-col :span="24" :class="{'rowClass':!currentLink}">
<div class="span-sty spanTwoWidth"><span>意见:</span></div>
<el-form-item><el-input size="small" v-model="dialogList.comment" placeholder="审批意见" class="addinputw addinputTwo" clearable ></el-input></el-form-item>
</el-col>
@ -170,7 +170,7 @@ export default {
openAgree(val) {
this.operation = val
this.currentLink = true
this.dialogList.comment = ''
this.dialogList.comment = '同意'
req.getNextNodesForSubmit({ taskDefKey: this.current.taskDefKey }).then((resp) => {
if (resp.success) {
var arr = resp.data
@ -205,10 +205,18 @@ export default {
if (this.operation === '同意') {
this.handleAgree()
} else if (this.operation === '驳回') {
if (this.dialogList.comment === '') {
this.$message({ showClose: true, type: 'error', message: '请填写审批意见' })
} else {
this.handleReject()
}
} else if (this.operation === '终止') {
if (this.dialogList.comment === '') {
this.$message({ showClose: true, type: 'error', message: '请填写审批意见' })
} else {
this.handleStop()
}
}
},
/** 同意任务 */
handleAgree() {
@ -307,5 +315,8 @@ export default {
border-right: 0px !important;
border-bottom: 0px !important;
}
.rowClass{
border-top: 1px solid #E0E3EB;
}
</style>

Loading…
Cancel
Save