Commit 61422b4f by wangql

BUG修复

1 parent 9c2ea782
......@@ -87,7 +87,14 @@ export const ASSIGNORDERLIST = (params) => {
}
//分配订单-导出订单列表
export const EXPORTSPORDER = BASEURL + '/JXCSPOrder/exportSpOrder'
// export const EXPORTSPORDER = BASEURL + '/JXCSPOrder/exportSpOrder'
export const EXPORTSPORDER = (params) => {
return axios({
url: '/JXCSPOrder/exportSpOrder',
method: 'POST',
data: params,
})
}
// 获取设备类型列表
export const GETDEVICETYPE = (params) => {
......
......@@ -178,6 +178,18 @@ export const resources = {
component: _import('equipment/initialize'),
auth: []
},
'10308': {
path: '/orderManage/rules',
name: 'fimsTable10308',
meta: {
title: '设备分发规则',
authId: '10308',
parentId: '103',
cache: true
},
component: _import('orderManage/rules'),
auth: []
},
'104': {
path: '/orderManage',
icon: 'document',
......@@ -212,18 +224,18 @@ export const resources = {
component: _import('orderManage/invoice'),
auth: []
},
'10403': {
path: '/orderManage/rules',
name: 'fimsTable10403',
meta: {
title: '设备分发规则',
authId: '10403',
parentId: '104',
cache: true
},
component: _import('orderManage/rules'),
auth: []
},
// '10403': {
// path: '/orderManage/rules',
// name: 'fimsTable10403',
// meta: {
// title: '设备分发规则',
// authId: '10403',
// parentId: '104',
// cache: true
// },
// component: _import('orderManage/rules'),
// auth: []
// },
// '10404': {
// path: '/orderManage/codeRules',
// name: 'fimsTable10404',
......
......@@ -26,14 +26,14 @@
<el-table-column label="设备型号">
<template slot-scope="scope">
<el-form-item :prop="'tableData.' + scope.$index + '.mnumName'" :rules="[{ required: true, message: '请输入设备型号', trigger: 'blur'}]">
<el-input v-model="scope.row.mnumName" size="small"></el-input>
<el-input v-model="scope.row.mnumName" size="small" maxlength="10"></el-input>
</el-form-item>
</template>
</el-table-column>
<el-table-column label="设备号开头编码">
<template slot-scope="scope">
<el-form-item :prop="'tableData.' + scope.$index + '.snHead'" :rules="[{ required: true, message: '请输入设备号开头编码', trigger: 'blur'}]">
<el-input v-model="scope.row.snHead" size="small"></el-input>
<el-input v-model="scope.row.snHead" size="small" maxlength="10"></el-input>
</el-form-item>
</template>
</el-table-column>
......
......@@ -319,16 +319,15 @@ export default {
*/
exportInfo: function () {
const _this = this
const _data = _this.getParams()
const params = { fileName: '订单列表' }
params.url = EXPORTSPORDER
params.method = 'post'
params.data = _data
params.success = function () {
_this.exportLoading = false
}
const oParams = _this.getParams()
_this.exportLoading = true
exportExcel(params)
EXPORTSPORDER(oParams)
.then((res) => {
_this.exportLoading = false
})
.catch((error) => {
_this.exportLoading = false
})
},
/**
......
<template>
<div>
<glsx-dialog :show="show" width="60%" title="分配发货" usefooter @closed="cancel">
<glsx-dialog :show="show" width="80%" title="分配发货" usefooter @closed="cancel">
<el-form ref="assignShipmentFrom" :model="form" :rules="formRules" label-width="110px">
<el-form-item label="是否扫码">
<el-radio v-model="form.deviceScanType" label="Y" :disabled="disabled_need">需扫码</el-radio>
......@@ -105,25 +105,26 @@
</div>
</div>
<br />
<div v-if="showCarInfo">
<!-- <div v-if="showCarInfo"> -->
<h3>车辆信息:</h3>
<div class="table_box">
<el-table v-loading="tableLoading" :data="carList" stripe style="width: 100%" border>
<el-table-column prop="bsParentBrandName" label="品牌" width="100" />
<el-table-column prop="bsSubBrandName" label="子品牌" :width="car_tdWidth" />
<el-table-column prop="bsAudiName" label="车系" :width="car_tdWidth" />
<el-table-column prop="bsMotorcycle" label="车型" style="width: 100%" />
<el-table-column prop="bsMotorHmdName" label="高中低配" width="100" />
<el-table-column prop="bsRemark" label="车价/颜色/备注" width="160" />
<el-table-column prop="bsCheckMaterialName" label="审核物料" width="160">
<el-table-column prop="bsMotorcycle" label="车型" width="200" />
<el-table-column prop="bsMotorHmdName" label="高中低配" width="80" />
<el-table-column prop="bsRemark" label="车价/颜色/备注" width="120" />
<el-table-column prop="bsCheckMaterialName" label="审核物料" width="170">
<template slot-scope="{row}">{{row.bsCheckMaterialCode +'/'+ row.bsCheckMaterialName}}</template>
</el-table-column>
<el-table-column prop="bsCheckQuantity" label="审核数量" width="120" />
<el-table-column prop="bsCheckMaterialName" label="分配实发物料" width="160" v-if="info.deviceScanType == 'Y'">
<el-table-column prop="bsCheckQuantity" label="审核数量" width="100" />
<el-table-column prop="bsCheckMaterialName" label="分配实发物料" width="170" v-if="info.deviceScanType == 'Y'">
<template slot-scope="{row}">
<el-select v-model="row.sendMaterialCode" filterable>
<el-option v-for="(k,idx) in list" :key="idx" :value="k.attribCode" :label="k.attribCode +'/'+ k.attribName"></el-option>
</el-select>
<div class="warningFont">{{judageMater(row.sendMaterialCode)}}</div>
</template>
</el-table-column>
<el-table-column prop="fastenConfigDesc" label="固定配置" width="200">
......@@ -139,7 +140,7 @@
</el-table>
</div>
</div>
<!-- </div> -->
<!-- 附件信息 开始 -->
<h3>附件信息:</h3>
......@@ -403,8 +404,8 @@ export default {
],
},
fileList:[]
fileList:[],
materialFlag: false
}
},
created() {},
......@@ -646,21 +647,23 @@ export default {
const { data } = res
data.map((k) => {
k.sendMaterialCode = _this.radio
// k.sendMaterialCode = _this.radio
k.sendMaterialCode = k.bsCheckMaterialCode
})
_this.carList = data || []
if (_this.carList.length > 0) {
for (var key in _this.carList) {
if (_this.carList[key].bsParentBrandId) {
this.showCarInfo = true
break
}
}
} else {
this.showCarInfo = false
}
// if (_this.carList.length > 0) {
// for (var key in _this.carList) {
// if (_this.carList[key].bsParentBrandId) {
// this.showCarInfo = true
// break
// }
// }
// } else {
// this.showCarInfo = false
// }
})
},
......@@ -697,13 +700,25 @@ export default {
return false
}
if(!this.materialFlag){
this.$message({
message: '请选择物料选项里存在的物料!',
type: 'error',
duration: 2000,
center: true,
})
return false
}
let checkRadio = _this.list.find((k) => {
return k.attribCode == _this.radio
})
if (_this.form.deviceScanType == 'Y' && !checkRadio) {
//未选择物料
_this.showMaterialCodeError = true
return false
if(!_this.carList || _this.carList.length == 0){//无车型情况下必选
//未选择物料
_this.showMaterialCodeError = true
return false
}
} else {
_this.showMaterialCodeError = false
}
......@@ -802,6 +817,40 @@ export default {
let obj = res.data || {}
this.fileList = obj.listDto||[]
})
},
// nextStep(){
// let isPass = this.judageMater();
// if(!isPass){
// return
// }
// },
// 判断车型审核物料是否在现有物料列表里
judageMater(code){
let list = this.list;
let m = list.findIndex(k => k.attribCode == code);
let arr = [];
this.carList.map(k => {
let o = list.findIndex(kk => kk.attribCode == code);
if(o<0){
arr.push(code)
}
})
if(arr.length>0){
this.materialFlag = false
}else{
this.materialFlag = true
}
if(m<0){
//this.arr.push(code)
return `物料${code}不存在`
}
}
},
......
......@@ -20,8 +20,8 @@
<el-table-column prop="updatedDate" label="发货时间" show-overflow-tooltip v-if="ndScan == 'N' || ndScan == 'D'">
<template slot-scope="scope">{{ DATEFORMATE(scope.row.updatedDate, 'YYYY-MM-DD') }}</template>
</el-table-column>
<el-table-column prop="logisticsCompany" label="物流公司" show-overflow-tooltip :width="tdWidth" v-if="ndScan == 'N' || ndScan == 'D'" />
<el-table-column prop="logisticsNum" label="物流单号" show-overflow-tooltip :width="tdWidth" v-if="ndScan == 'N' || ndScan == 'D'" />
<el-table-column prop="logisticsCompany" label="物流公司" show-overflow-tooltip :width="tdWidth" />
<el-table-column prop="logisticsNum" label="物流单号" show-overflow-tooltip :width="tdWidth" />
<el-table-column prop="sendQulities" label="发货数量" width="80" v-if="ndScan == 'N' || ndScan == 'D'" />
<!-- <el-table-column prop="sendQulities" label="发货物流">
<template slot-scope="{row}">
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!