Browse Source

Merge remote-tracking branch 'origin/master'

master
dimengzhe 2 years ago
parent
commit
f25b9bb251
  1. 59
      anrui-scm/anrui-scm-ui/src/views/anruiscm/scmwarehouse/scmwarehouseAdd.vue
  2. 4
      anrui-scm/anrui-scm-ui/src/views/cheliang/cheliangtaizhang/cheliangtaizhangAdd.vue
  3. 4
      anrui-scm/anrui-scm-ui/src/views/cheliang/cheliangtaizhang/relation/cheliangtaizhangMai.vue
  4. 16
      anrui-scm/anrui-scm-ui/src/views/ruzhang/ruzhangguanli/ruzhangguanli.vue

59
anrui-scm/anrui-scm-ui/src/views/anruiscm/scmwarehouse/scmwarehouseAdd.vue

@ -24,7 +24,7 @@
</el-col> </el-col>
<el-col :span="9"> <el-col :span="9">
<el-form-item prop=""> <el-form-item prop="">
<el-input v-model="formobj.useOrg" placeholder="使用组织" class="addinputw" :disabled="true"/> <el-input v-model="formobj.useOrg" placeholder="" class="addinputw" :disabled="true"/>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="3" class="tleftb"> <el-col :span="3" class="tleftb">
@ -125,7 +125,6 @@ export default {
warehouseGroup_list: [], warehouseGroup_list: [],
libTube_list: [], libTube_list: [],
formobj: { formobj: {
id: '',
sid: '', sid: '',
useOrg: '', // 使 useOrg: '', // 使
useOrgSid: '', // 使sid useOrgSid: '', // 使sid
@ -137,8 +136,7 @@ export default {
warehouseGroupValue: '', warehouseGroupValue: '',
warehouseGroupKey: '', warehouseGroupKey: '',
libTubeName: '', libTubeName: '',
libTubeSid: '', libTubeSid: ''
orgPath: ''
}, },
rules: { rules: {
useOrg: [{ required: true, message: '使用组织不能为空', trigger: 'change' }], // 使 useOrg: [{ required: true, message: '使用组织不能为空', trigger: 'change' }], // 使
@ -163,12 +161,12 @@ export default {
getUseOrg() { getUseOrg() {
getOrgSidByPath({ orgPath: window.sessionStorage.getItem('defaultOrgPath') }).then((res) => { getOrgSidByPath({ orgPath: window.sessionStorage.getItem('defaultOrgPath') }).then((res) => {
if (res.success) { if (res.success) {
this.formobj.useOrgSid = res.data // 使sid
fetchBySid(res.data).then((resp) => { fetchBySid(res.data).then((resp) => {
if (resp.success) { if (resp.success) {
this.formobj.useOrg = res.data.name // 使 this.formobj.useOrg = resp.data.name // 使
} }
}) })
this.formobj.useOrgSid = res.data // 使sid
} }
}) })
}, },
@ -186,7 +184,6 @@ export default {
console.log('触发下拉框按钮', value) console.log('触发下拉框按钮', value)
let bb = null let bb = null
this.useOrg_list.forEach((e) => { this.useOrg_list.forEach((e) => {
// eslint-disable-next-line eqeqeq
if (e.name === value) { if (e.name === value) {
bb = { bb = {
name: e.name, name: e.name,
@ -316,20 +313,20 @@ export default {
handleReturn(isreload) { handleReturn(isreload) {
if (isreload === 'true') this.$emit('reloadlist') if (isreload === 'true') this.$emit('reloadlist')
this.formobj.id = '' this.formobj = {
this.formobj.sid = '' // SID sid: '',
this.formobj.useOrg = '' // 使 useOrg: '', // 使
this.useOrgSid = '' // 使sid useOrgSid: '', // 使sid
this.gressionCode = '' // gressionCode: '', //
this.formobj.warehouseName = '' // warehouseName: '', //
this.formobj.warehouseAttribute = '' // warehouseAttribute: '', //
this.formobj.warehouseContract = '' // warehouseContract: '', //
this.formobj.warehouseContractSid = '' // sid warehouseContractSid: '', // sid
this.formobj.warehouseGroup = '' // warehouseGroupValue: '',
this.formobj.libTubeSid = '' warehouseGroupKey: '',
this.formobj.libTubeName = '' libTubeName: '',
this.formobj.orgPath = '' libTubeSid: ''
// this.useOrg_list = [] }
this.$refs['form_obj'].resetFields() this.$refs['form_obj'].resetFields()
this.$emit('doback') this.$emit('doback')
}, },
@ -339,7 +336,6 @@ export default {
}) })
this.dialogStatus = 'add' this.dialogStatus = 'add'
this.viewTitle = '【新增】存放地点' this.viewTitle = '【新增】存放地点'
this.formobj.orgPath = window.sessionStorage.getItem('defaultOrgPath')
this.getUseOrg() this.getUseOrg()
this.getType() this.getType()
}, },
@ -349,24 +345,13 @@ export default {
}) })
this.dialogStatus = 'edit' this.dialogStatus = 'edit'
this.viewTitle = '【修改】存放地点' this.viewTitle = '【修改】存放地点'
req.fetchBySid(row.sid).then(resp => { req.fetchBySid(row.sid).then((resp) => {
const vdata = resp.data if (resp.success) {
this.formobj.id = vdata.id this.formobj = resp.data
this.formobj.sid = vdata.sid // SID }
this.formobj.useOrg = vdata.useOrg // 使
this.formobj.gressionCode = vdata.gressionCode //
this.formobj.warehouseName = vdata.warehouseName //
this.formobj.warehouseAttribute = vdata.warehouseAttribute //
this.formobj.warehouseContract = vdata.warehouseContract //
this.formobj.warehouseContractSid = vdata.warehouseContractSid // sid
this.formobj.warehouseGroupKey = vdata.warehouseGroupKey //
this.formobj.warehouseGroupValue = vdata.warehouseGroupValue //
this.formobj.libTubeName = vdata.libTubeName
this.formobj.libTubeSid = vdata.libTubeSid
}).catch(e => { }).catch(e => {
this.formobj = row this.formobj = row
}) })
this.getUseOrg()
this.getType() this.getType()
}, },
saveAdd() { saveAdd() {

4
anrui-scm/anrui-scm-ui/src/views/cheliang/cheliangtaizhang/cheliangtaizhangAdd.vue

@ -674,6 +674,10 @@ export default {
this.$message({ showClose: true, type: 'error', message: '请选择车型' }) this.$message({ showClose: true, type: 'error', message: '请选择车型' })
return return
} }
if (this.temp.settlementStatusValue !== '' && this.temp.settlementStatusValue === '买断' && this.temp.solidDate === '') {
this.$message({ showClose: true, type: 'error', message: '因买断状态为买断,则买断日期不能为空' })
return
}
this.$refs['dataForm'].validate((valid) => { this.$refs['dataForm'].validate((valid) => {
if (valid) { if (valid) {
this.FormLoading = true this.FormLoading = true

4
anrui-scm/anrui-scm-ui/src/views/cheliang/cheliangtaizhang/relation/cheliangtaizhangMai.vue

@ -104,6 +104,10 @@ export default {
// //
handleCreate() { handleCreate() {
this.getUrl() this.getUrl()
if (this.temp.solidDate === '') {
this.$message({ showClose: true, message: '买断日期不能为空!', type: 'error' })
return
}
if (this.temp.commonAppendix.length < 1) { if (this.temp.commonAppendix.length < 1) {
this.$message({ this.$message({
showClose: true, showClose: true,

16
anrui-scm/anrui-scm-ui/src/views/ruzhang/ruzhangguanli/ruzhangguanli.vue

@ -55,7 +55,11 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="applicationDate" label="申请日期" align="center" width="100"/> <el-table-column prop="applicationDate" label="申请日期" align="center" width="100"/>
<el-table-column prop="pcApplicationCode" label="排产申请编号" align="center" width="170"/> <el-table-column label="采购申请编号" align="center" width="170">
<template slot-scope="scope">
<span class="bluezi" @click="hangleLook(scope.row)">{{ scope.row.pcApplicationCode }}</span>
</template>
</el-table-column>
<el-table-column prop="purchaseOrderNo" label="采购订单编号" align="center" width="170"/> <el-table-column prop="purchaseOrderNo" label="采购订单编号" align="center" width="170"/>
<el-table-column prop="modelName" label="车型" align="center"/> <el-table-column prop="modelName" label="车型" align="center"/>
<el-table-column prop="vehicleNum" fit label="台数" align="center" width="60"/> <el-table-column prop="vehicleNum" fit label="台数" align="center" width="60"/>
@ -74,6 +78,8 @@
<div-add v-show="viewState == 2 || viewState == 3" ref="divadd" @doback="resetState" @reloadlist="loadList"/> <div-add v-show="viewState == 2 || viewState == 3" ref="divadd" @doback="resetState" @reloadlist="loadList"/>
<!--详情部分组件--> <!--详情部分组件-->
<div-info v-show="viewState == 4" ref="divinfo" @doback="resetState"/> <div-info v-show="viewState == 4" ref="divinfo" @doback="resetState"/>
<!-- 查看采购申请详情 -->
<cheliangpaichanInfo v-show="viewState == 5" ref="divCaiGouInfo" @doback="resetState"/>
<el-dialog title="" :visible.sync="centerDialogVisible" width="78%" height="1%" :before-close="closeIt" center> <el-dialog title="" :visible.sync="centerDialogVisible" width="78%" height="1%" :before-close="closeIt" center>
<iframe frameborder="0" id="iframe" style="width:100%;" scrolling="no" :src="this.centerDialogVisible === true ? url :''"></iframe> <iframe frameborder="0" id="iframe" style="width:100%;" scrolling="no" :src="this.centerDialogVisible === true ? url :''"></iframe>
</el-dialog> </el-dialog>
@ -88,6 +94,7 @@ import pageye from '@/components/pagination/pageye'
import { getPathSidByUserSid } from '@/api/cheliang/dictcommons' import { getPathSidByUserSid } from '@/api/cheliang/dictcommons'
import divAdd from './ruzhangAdd' import divAdd from './ruzhangAdd'
import divInfo from './ruzhangInfo' import divInfo from './ruzhangInfo'
import cheliangpaichanInfo from '../../../views/supplychain/cheliangpaichan/cheliangpaichanInfo'
import { getStorage } from '@/utils/auth' import { getStorage } from '@/utils/auth'
export default { export default {
@ -97,7 +104,8 @@ export default {
Pagination, Pagination,
pageye, pageye,
divAdd, divAdd,
divInfo divInfo,
cheliangpaichanInfo
}, },
data() { data() {
return { return {
@ -218,6 +226,10 @@ export default {
const sid = row.sid const sid = row.sid
this.$refs['divinfo'].showInfo(sid, row) this.$refs['divinfo'].showInfo(sid, row)
}, },
hangleLook(row) {
this.viewState = 5
this.$refs['divCaiGouInfo'].showInfo(row.vehicleOrderSid, row)
},
// //
dosearch() { dosearch() {
this.queryParams.current = 1 this.queryParams.current = 1

Loading…
Cancel
Save