|
|
@ -4,7 +4,7 @@ |
|
|
|
style="font-size: 32rpx; padding-left: 10rpx; padding-top: 10rpx; flex-direction: column;"> |
|
|
|
<!-- <view class="flex u-col-center space-between"> |
|
|
|
<view class="" style="font-size: 35rpx;"> |
|
|
|
计划单号 : {{planCode}} |
|
|
|
生产计划 : {{planNumber}} |
|
|
|
<text v-if="planName!=''">({{planName}})</text> |
|
|
|
</view> |
|
|
|
<view class=""> |
|
|
@ -23,7 +23,7 @@ |
|
|
|
</uni-section> |
|
|
|
<view class="uni-flex space-between"> |
|
|
|
<view class="" style="width: 75%;"> |
|
|
|
<uni-easyinput disabled trim="all" v-model="planCode"></uni-easyinput> |
|
|
|
<uni-easyinput disabled trim="all" v-model="planNumber"></uni-easyinput> |
|
|
|
</view> |
|
|
|
<view class="uni-flex" style="width: 25%; align-items: center;"> |
|
|
|
<button type="primary" size="mini" @click="showPlanSelect">选择</button> |
|
|
@ -36,10 +36,8 @@ |
|
|
|
</uni-section> |
|
|
|
|
|
|
|
<view class="uni-flex"> |
|
|
|
<uni-easyinput |
|
|
|
@clear="bucketClear" |
|
|
|
ref="inputBucketCode" class="" trim="all" v-model="bucketCode" |
|
|
|
@confirm="onConfirmBucketCode" ></uni-easyinput> |
|
|
|
<uni-easyinput @clear="bucketClear" ref="inputBucketCode" class="" trim="all" |
|
|
|
v-model="bucketCode" @confirm="onConfirmBucketCode"></uni-easyinput> |
|
|
|
</view> |
|
|
|
|
|
|
|
</view> |
|
|
@ -49,11 +47,8 @@ |
|
|
|
type="line"> |
|
|
|
</uni-section> |
|
|
|
<view class="uni-flex space-between"> |
|
|
|
<uni-easyinput |
|
|
|
ref="inputItemCode" |
|
|
|
@clear="itemClear" |
|
|
|
class="" trim="all" v-model="itemCode" |
|
|
|
@confirm="onConfirmItemCode" ></uni-easyinput> |
|
|
|
<uni-easyinput ref="inputItemCode" @clear="itemClear" class="" trim="all" v-model="itemCode" |
|
|
|
@confirm="onConfirmItemCode"></uni-easyinput> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="uni-flex uni-column " style="margin: 10rpx;"> |
|
|
@ -61,11 +56,7 @@ |
|
|
|
type="line"> |
|
|
|
</uni-section> |
|
|
|
<view class="uni-flex space-between"> |
|
|
|
<uni-easyinput |
|
|
|
class="" |
|
|
|
trim="all" |
|
|
|
ref="inputBatchCode" |
|
|
|
v-model="batchCode" |
|
|
|
<uni-easyinput class="" trim="all" ref="inputBatchCode" v-model="batchCode" |
|
|
|
@confirm="onConfirmBatchCode"></uni-easyinput> |
|
|
|
</view> |
|
|
|
</view> |
|
|
@ -74,11 +65,7 @@ |
|
|
|
type="line"> |
|
|
|
</uni-section> |
|
|
|
<view class="uni-flex space-between"> |
|
|
|
<uni-easyinput |
|
|
|
class="" |
|
|
|
trim="all" |
|
|
|
ref="inputReferenceCode" |
|
|
|
v-model="referenceCode" |
|
|
|
<uni-easyinput class="" trim="all" ref="inputReferenceCode" v-model="referenceCode" |
|
|
|
@confirm="onConfirmReferenceCode"></uni-easyinput> |
|
|
|
</view> |
|
|
|
</view> |
|
|
@ -87,11 +74,7 @@ |
|
|
|
type="line"> |
|
|
|
</uni-section> |
|
|
|
<view class="uni-flex space-between"> |
|
|
|
<uni-easyinput |
|
|
|
class="" |
|
|
|
ref="inputSupplierCode" |
|
|
|
trim="all" |
|
|
|
v-model="supplierCode" |
|
|
|
<uni-easyinput class="" ref="inputSupplierCode" trim="all" v-model="supplierCode" |
|
|
|
@confirm="onConfirmSupplierCode"></uni-easyinput> |
|
|
|
</view> |
|
|
|
</view> |
|
|
@ -100,11 +83,7 @@ |
|
|
|
type="line"> |
|
|
|
</uni-section> |
|
|
|
<view class="uni-flex space-between"> |
|
|
|
<uni-easyinput |
|
|
|
class="" |
|
|
|
trim="all" |
|
|
|
ref="inputWeight" |
|
|
|
v-model="weight" |
|
|
|
<uni-easyinput class="" trim="all" ref="inputWeight" v-model="weight" |
|
|
|
@confirm="onConfirmWeight"></uni-easyinput> |
|
|
|
</view> |
|
|
|
</view> |
|
|
@ -125,8 +104,7 @@ |
|
|
|
</view> |
|
|
|
<winScanNormal ref="scanPopup" title="设备编号" @getResult='getScanResult'></winScanNormal> |
|
|
|
|
|
|
|
<wz-select-popup ref="selectPopup" title="选择计划单号" @select="select" /> |
|
|
|
<wz-select-popup ref="selectPopupMaterial" title="选择原料" @select="selectMaterial" /> |
|
|
|
<wz-select-popup ref="selectPopup" title="选择生产计划" @select="selectPlan" /> |
|
|
|
<showModal ref="comMessage" @confirm="confirm"></showModal> |
|
|
|
|
|
|
|
|
|
|
@ -142,11 +120,11 @@ |
|
|
|
getMaterialList |
|
|
|
} from "../foam/mock.js" |
|
|
|
import { |
|
|
|
getPlaneNumberList, |
|
|
|
getPlasticsPlaneNumberList, |
|
|
|
getMaterialLists, |
|
|
|
foamInputSubmit, |
|
|
|
plasticsInputSubmit, |
|
|
|
getBucketCode, |
|
|
|
getItemCode |
|
|
|
checkItemCodeByBucket |
|
|
|
} from '@/api/request2.js'; |
|
|
|
import showModal from '../../mycomponents/common/showModal.vue' |
|
|
|
import winScanNormal from "@/mycomponents/scan/winScanNormal.vue" |
|
|
@ -161,7 +139,7 @@ |
|
|
|
data() { |
|
|
|
return { |
|
|
|
dateTime: "", |
|
|
|
|
|
|
|
planNumber: "", |
|
|
|
planName: "", |
|
|
|
dataList: [], |
|
|
|
userForm: { |
|
|
@ -169,15 +147,14 @@ |
|
|
|
values: [], |
|
|
|
origin: [] |
|
|
|
}, |
|
|
|
planCode: "", |
|
|
|
bucketCheckCode:"", |
|
|
|
bucketCode:"", |
|
|
|
itemCode:"", |
|
|
|
itemCheckCode:"", |
|
|
|
batchCode:"", |
|
|
|
referenceCode:"", |
|
|
|
supplierCode:"", |
|
|
|
weight:"", |
|
|
|
bucketCheckCode: "", |
|
|
|
bucketCode: "", |
|
|
|
itemCode: "", |
|
|
|
itemCheckCode: "", |
|
|
|
batchCode: "", |
|
|
|
referenceCode: "", |
|
|
|
supplierCode: "", |
|
|
|
weight: "", |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
@ -186,7 +163,7 @@ |
|
|
|
onLoad() {}, |
|
|
|
|
|
|
|
methods: { |
|
|
|
|
|
|
|
|
|
|
|
getScanResult(result) { |
|
|
|
|
|
|
|
}, |
|
|
@ -194,220 +171,180 @@ |
|
|
|
// 处理滚动事件 |
|
|
|
console.log(event.detail); |
|
|
|
}, |
|
|
|
itemClear(){ |
|
|
|
itemClear() { |
|
|
|
this.itemCode = "" |
|
|
|
this.itemCheckCode = ""; |
|
|
|
}, |
|
|
|
|
|
|
|
bucketClear(){ |
|
|
|
|
|
|
|
bucketClear() { |
|
|
|
this.bucketCode = "" |
|
|
|
this.bucketCheckCode = ""; |
|
|
|
}, |
|
|
|
onConfirmBucketCode(data){ |
|
|
|
onConfirmBucketCode(data) { |
|
|
|
this.itemCode = "" |
|
|
|
this.itemCheckCode ="" |
|
|
|
if(data==undefined||data==""){ |
|
|
|
this.itemCheckCode = "" |
|
|
|
if (data == undefined || data == "") { |
|
|
|
this.showMessage("2.料筒号", "输入料筒号") |
|
|
|
this.$refs.inputBucketCode.focused = true |
|
|
|
return; |
|
|
|
} |
|
|
|
uni.showLoading({ |
|
|
|
title: "加载中", |
|
|
|
mask: true |
|
|
|
}) |
|
|
|
// getBucketCode().then(res=>{ |
|
|
|
// uni.hideLoading(); |
|
|
|
// this.bucketCheckCode = data; |
|
|
|
// }).catch(error=>{ |
|
|
|
// uni.hideLoading(); |
|
|
|
// this.bucketCode = "" |
|
|
|
// this.bucketCheckCode = ""; |
|
|
|
// this.showMessage("2.料筒号","料筒号【"+data+"】无效"+error) |
|
|
|
// }) |
|
|
|
|
|
|
|
if(this.checkBucketCode(data)){ |
|
|
|
this.bucketCheckCode = data; |
|
|
|
this.$refs.inputItemCode.focused = true |
|
|
|
}else { |
|
|
|
this.bucketCode = "" |
|
|
|
this.bucketCheckCode = ""; |
|
|
|
this.showMessage("2.料筒号","料筒号【"+data+"】无效") |
|
|
|
} |
|
|
|
|
|
|
|
this.bucketCode = data |
|
|
|
this.bucketCheckCode = data; |
|
|
|
this.$refs.inputItemCode.focused = true |
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
onConfirmItemCode(data){ |
|
|
|
if(this.bucketCheckCode==""){ |
|
|
|
onConfirmItemCode(data) { |
|
|
|
if (this.bucketCheckCode == "") { |
|
|
|
this.itemCode = "" |
|
|
|
this.bucketCheckCode ="" |
|
|
|
this.bucketCheckCode = "" |
|
|
|
this.$refs.inputBucketCode.focused = true |
|
|
|
this.showMessage("2.料筒号","请先扫描料筒号") |
|
|
|
this.showMessage("2.料筒号", "请先扫描料筒号") |
|
|
|
return; |
|
|
|
} |
|
|
|
if(data==undefined||data==""){ |
|
|
|
this.showMessage("3.零件号","输入零件号") |
|
|
|
if (data == undefined || data == "") { |
|
|
|
this.showMessage("3.零件号", "输入零件号") |
|
|
|
this.$refs.inputItemCode.focused = true |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
// getItemCode().then(res=>{ |
|
|
|
// uni.hideLoading(); |
|
|
|
// this.itemCheckCode = data; |
|
|
|
// }).catch(error=>{ |
|
|
|
// uni.hideLoading(); |
|
|
|
// this.itemCode = "" |
|
|
|
// this.itemCheckCode = ""; |
|
|
|
// this.showMessage("3.零件号","零件号【"+data+"】无效"+error) |
|
|
|
// }) |
|
|
|
|
|
|
|
if(this.checkItemCode(data)){ |
|
|
|
|
|
|
|
checkItemCodeByBucket(this.bucketCode, this.itemCode).then(res => { |
|
|
|
uni.hideLoading(); |
|
|
|
this.itemCheckCode = data; |
|
|
|
this.itemCode = data |
|
|
|
this.itemCheckCode =data |
|
|
|
this.$refs.inputBatchCode.focused = true |
|
|
|
}else { |
|
|
|
}).catch(error => { |
|
|
|
uni.hideLoading(); |
|
|
|
this.itemCode = "" |
|
|
|
this.itemCheckCode ="" |
|
|
|
this.showMessage("3.零件号","零件号【"+data+"】无效") |
|
|
|
} |
|
|
|
|
|
|
|
this.itemCheckCode = ""; |
|
|
|
this.$refs.inputItemCode.focused = true |
|
|
|
this.showMessage("3.零件号", "零件号【" + data + "】无效," + error) |
|
|
|
// this.showMessage("3.零件号",error) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
confirm(content){ |
|
|
|
if(content.includes("料筒")){ |
|
|
|
|
|
|
|
confirm(content) { |
|
|
|
if (content.includes("料筒号")) { |
|
|
|
this.$refs.inputBucketCode.focused = true |
|
|
|
}else if(content.includes("零件")){ |
|
|
|
} else if (content.includes("零件号")) { |
|
|
|
this.$refs.inputItemCode.focused = true |
|
|
|
}else if(content.includes("批次")){ |
|
|
|
} else if (content.includes("批次")) { |
|
|
|
this.$refs.inputBatchCode.focused = true |
|
|
|
}else if(content.includes("参考")){ |
|
|
|
} else if (content.includes("参考")) { |
|
|
|
this.$refs.inputReferenceCode.focused = true |
|
|
|
}else if(content.includes("供应商")){ |
|
|
|
} else if (content.includes("供应商")) { |
|
|
|
this.$refs.inputSupplierCode.focused = true |
|
|
|
}else if(content.includes("重量")){ |
|
|
|
} else if (content.includes("重量")) { |
|
|
|
this.$refs.inputWeight.focused = true |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
checkBucketCode(code){ |
|
|
|
var isCheckPass =false; |
|
|
|
if(code=="1"){ |
|
|
|
isCheckPass=true |
|
|
|
}else { |
|
|
|
isCheckPass=false |
|
|
|
} |
|
|
|
return isCheckPass; |
|
|
|
}, |
|
|
|
|
|
|
|
checkItemCode(code){ |
|
|
|
var isCheckPass =false; |
|
|
|
if(code=="123"){ |
|
|
|
isCheckPass=true |
|
|
|
}else { |
|
|
|
isCheckPass=false |
|
|
|
} |
|
|
|
return isCheckPass; |
|
|
|
}, |
|
|
|
|
|
|
|
onConfirmBatchCode(data){ |
|
|
|
if(data==undefined||data==""){ |
|
|
|
this.showMessage("4.批次","输入批次号位空") |
|
|
|
|
|
|
|
onConfirmBatchCode(data) { |
|
|
|
if (data == undefined || data == "") { |
|
|
|
this.showMessage("4.批次", "输入批次号位空") |
|
|
|
return; |
|
|
|
} |
|
|
|
this.$refs.inputReferenceCode.focused = true |
|
|
|
}, |
|
|
|
onConfirmReferenceCode(data){ |
|
|
|
if(data==undefined||data==""){ |
|
|
|
this.showMessage("4.批次","输入参考号位空") |
|
|
|
onConfirmReferenceCode(data) { |
|
|
|
if (data == undefined || data == "") { |
|
|
|
this.showMessage("4.批次", "输入参考号位空") |
|
|
|
return; |
|
|
|
} |
|
|
|
this.$refs.inputSupplierCode.focused = true |
|
|
|
}, |
|
|
|
onConfirmSupplierCode(data){ |
|
|
|
if(data==undefined||data==""){ |
|
|
|
this.showMessage("6.供应商编码","输入供应商编码位空") |
|
|
|
onConfirmSupplierCode(data) { |
|
|
|
if (data == undefined || data == "") { |
|
|
|
this.showMessage("6.供应商编码", "输入供应商编码位空") |
|
|
|
return; |
|
|
|
} |
|
|
|
this.$refs.inputWeight.focused = true |
|
|
|
}, |
|
|
|
onConfirmWeight(data){ |
|
|
|
if(data==undefined||data==""){ |
|
|
|
this.showMessage("7.数量","输入数量为空") |
|
|
|
onConfirmWeight(data) { |
|
|
|
if (data == undefined || data == "") { |
|
|
|
this.showMessage("7.数量", "输入数量为空") |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
submit() { |
|
|
|
if (this.planCode == "") { |
|
|
|
this.showMessage("1.计划单号","请选择计划单号") |
|
|
|
if (this.planNumber == "") { |
|
|
|
this.showMessage("1.生产计划", "请选择生产计划") |
|
|
|
return |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (this.bucketCode == "") { |
|
|
|
this.bucketCode="" |
|
|
|
this.bucketCode = "" |
|
|
|
this.bucketCheckCode == "" |
|
|
|
this.showMessage("2.料筒号","请扫描料筒号") |
|
|
|
this.showMessage("2.料筒号", "请扫描料筒号") |
|
|
|
return |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (this.bucketCheckCode == "") { |
|
|
|
this.showMessage("2.料筒号","请按回车校验料筒号") |
|
|
|
this.showMessage("2.料筒号", "请按回车校验料筒号") |
|
|
|
return |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (this.itemCode == "") { |
|
|
|
this.itemCode="" |
|
|
|
this.itemCode = "" |
|
|
|
this.itemCheckCode == "" |
|
|
|
this.showMessage("3.零件号","请扫描零件号") |
|
|
|
this.showMessage("3.零件号", "请扫描零件号") |
|
|
|
return |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (this.itemCheckCode == "") { |
|
|
|
this.showMessage("3.零件号","请按回车校验零件号") |
|
|
|
this.showMessage("3.零件号", "请按回车校验零件号") |
|
|
|
return |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (this.batchCode == "") { |
|
|
|
this.showMessage("4.批次号","请扫描批次号") |
|
|
|
this.showMessage("4.批次号", "请扫描批次号") |
|
|
|
return |
|
|
|
} |
|
|
|
if (this.referenceCode == "") { |
|
|
|
this.showMessage("5.参考号","请扫描参考号") |
|
|
|
this.showMessage("5.参考号", "请扫描参考号") |
|
|
|
return |
|
|
|
} |
|
|
|
if (this.supplierCode == "") { |
|
|
|
this.showMessage("6.供应商编码","请扫描供应商") |
|
|
|
this.showMessage("6.供应商编码", "请扫描供应商") |
|
|
|
return |
|
|
|
} |
|
|
|
if (this.weight == "") { |
|
|
|
this.showMessage("7.数量","请输入重量") |
|
|
|
this.showMessage("7.数量", "请输入重量") |
|
|
|
return |
|
|
|
} |
|
|
|
if (this.weight ==0) { |
|
|
|
this.showMessage("7.数量","输入重量必须大于0") |
|
|
|
if (this.weight == 0) { |
|
|
|
this.showMessage("7.数量", "输入重量必须大于0") |
|
|
|
return |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
var param ={ |
|
|
|
planCode:this.planCode, |
|
|
|
bucketCode:this.bucketCheckCode, |
|
|
|
itemCode:this.itemCheckCode, |
|
|
|
batchCode:this.batchCode, |
|
|
|
referenceCode:this.referenceCode, |
|
|
|
supplierCode:this.supplierCode, |
|
|
|
weight:this.weight |
|
|
|
|
|
|
|
|
|
|
|
var param = { |
|
|
|
planNumber: this.planNumber, |
|
|
|
bucketCode: this.bucketCheckCode, |
|
|
|
itemCode: this.itemCheckCode, |
|
|
|
batchCode: this.batchCode, |
|
|
|
referenceCode: this.referenceCode, |
|
|
|
supplierCode: this.supplierCode, |
|
|
|
weight: this.weight, |
|
|
|
id: this.$store.state.user.id, |
|
|
|
createTime: getCurrDateTime(), |
|
|
|
} |
|
|
|
console.log("参数",param) |
|
|
|
console.log("参数", param) |
|
|
|
// uni.showLoading({ |
|
|
|
// title: "加载中", |
|
|
|
// mask: true |
|
|
|
// }) |
|
|
|
// var param = { |
|
|
|
// planCode: this.planCode, |
|
|
|
// planNumber: this.planNumber, |
|
|
|
// materialName: this.materialName, |
|
|
|
// materialQty: this.materialQty |
|
|
|
// } |
|
|
|
// foamInputSubmit(param).then(res=>{ |
|
|
|
// plasticsInputSubmit(param).then(res=>{ |
|
|
|
// uni.hideLoading() |
|
|
|
// this.showMessage("提交成功") |
|
|
|
// this.clearData() |
|
|
@ -416,57 +353,50 @@ |
|
|
|
// this.showMessage(error) |
|
|
|
// }) |
|
|
|
}, |
|
|
|
showMessage(title,hint) { |
|
|
|
showMessage(title, hint) { |
|
|
|
this.$refs.inputBucketCode.focused = false |
|
|
|
this.$refs.inputItemCode.focused = false |
|
|
|
this.$refs.inputBatchCode.focused = false |
|
|
|
this.$refs.inputReferenceCode.focused = false |
|
|
|
this.$refs.inputSupplierCode.focused = false |
|
|
|
this.$refs.inputWeight.focused = false |
|
|
|
this.$refs.comMessage.showMessage(title, hint) |
|
|
|
}, |
|
|
|
resetData() { |
|
|
|
this.planCode = ""; |
|
|
|
this.planNumber = ""; |
|
|
|
this.materialName = "" |
|
|
|
this.materialQty = 0 |
|
|
|
}, |
|
|
|
showPlanSelect() { |
|
|
|
// uni.showLoading({ |
|
|
|
// title:"加载中", |
|
|
|
// mask:true |
|
|
|
// }) |
|
|
|
// getPlaneNumberList().then(res=>{ |
|
|
|
// uni.hideLoading() |
|
|
|
// this.$refs.selectPopup.open({ |
|
|
|
// mode: 'radio', //radio checkbox 单选、多选 |
|
|
|
// dataList: getDataList(), //如果dataList传入了数组则直接使用传入的数组渲染,无需再配置proxyConfig |
|
|
|
// // selected: this.userForm.values, //已选中的数据 |
|
|
|
// // proxyConfig: { //组件内部代理请求数据配置 |
|
|
|
// // reqFun: this.reqGetList, //请求方法 |
|
|
|
// // localPaging: false //前端本地分页 |
|
|
|
// // }, |
|
|
|
// search: { |
|
|
|
// type: 'local', //local本地数据搜索 | remote请求接口 |
|
|
|
// }, |
|
|
|
// fields: { |
|
|
|
// label: 'name', |
|
|
|
// value: 'code' |
|
|
|
// } |
|
|
|
// }) |
|
|
|
// }).catch(error=>{ |
|
|
|
// uni.hideLoading() |
|
|
|
// this.showMessage(error) |
|
|
|
// }) |
|
|
|
this.$refs.selectPopup.open({ |
|
|
|
mode: 'radio', //radio checkbox 单选、多选 |
|
|
|
dataList: getDataList(), //如果dataList传入了数组则直接使用传入的数组渲染,无需再配置proxyConfig |
|
|
|
// selected: this.userForm.values, //已选中的数据 |
|
|
|
// proxyConfig: { //组件内部代理请求数据配置 |
|
|
|
// reqFun: this.reqGetList, //请求方法 |
|
|
|
// localPaging: false //前端本地分页 |
|
|
|
// }, |
|
|
|
search: { |
|
|
|
type: 'local', //local本地数据搜索 | remote请求接口 |
|
|
|
}, |
|
|
|
fields: { |
|
|
|
label: 'name', |
|
|
|
value: 'code' |
|
|
|
} |
|
|
|
uni.showLoading({ |
|
|
|
title: "加载中", |
|
|
|
mask: true |
|
|
|
}) |
|
|
|
getPlasticsPlaneNumberList().then(res => { |
|
|
|
uni.hideLoading() |
|
|
|
var list = []; |
|
|
|
list = res.Result; |
|
|
|
this.$refs.selectPopup.open({ |
|
|
|
mode: 'radio', //radio checkbox 单选、多选 |
|
|
|
dataList: list, //如果dataList传入了数组则直接使用传入的数组渲染,无需再配置proxyConfig |
|
|
|
// selected: this.userForm.values, //已选中的数据 |
|
|
|
// proxyConfig: { //组件内部代理请求数据配置 |
|
|
|
// reqFun: this.reqGetList, //请求方法 |
|
|
|
// localPaging: false //前端本地分页 |
|
|
|
// }, |
|
|
|
search: { |
|
|
|
type: 'local', //local本地数据搜索 | remote请求接口 |
|
|
|
}, |
|
|
|
fields: { |
|
|
|
label: 'PLAN_NO', |
|
|
|
value: 'SHIFT_CODE' |
|
|
|
} |
|
|
|
}) |
|
|
|
}).catch(error => { |
|
|
|
uni.hideLoading() |
|
|
|
this.showMessage(error) |
|
|
|
}) |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
onConfirm(data) { |
|
|
@ -474,18 +404,13 @@ |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
select(mode, data) { |
|
|
|
this.planCode = data.code |
|
|
|
this.planName = data.name |
|
|
|
selectPlan(mode, data) { |
|
|
|
this.planNumber = data.PLAN_NO |
|
|
|
this.planName = data.SHIFT_CODE |
|
|
|
console.log(mode) |
|
|
|
console.log(data) |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
selectMaterial(mode, data) { |
|
|
|
this.materialName = data.name |
|
|
|
console.log("selectPopupMaterial") |
|
|
|
}, |
|
|
|
reqGetList(data) { |
|
|
|
// var data ={ |
|
|
|
// pageIndex:1, |
|
|
|