|
@@ -315,9 +315,8 @@
|
|
|
name="input" type="digit"></input> -->
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="c-row ">
|
|
|
- <view v-show='gridList.goodsName!="大豆"' class="title">容重(克/升)</view>
|
|
|
- <view v-show='gridList.goodsName=="大豆"' class="title">蛋白</view>
|
|
|
+ <view class="c-row" v-if="gridList.goodsName!='大豆'">
|
|
|
+ <view class="title">容重(克/升)</view>
|
|
|
<view class="con-list">
|
|
|
<MyNumberInput :myvalue="gridList.bulkDensity" :Isedit="Isedit" :IsShow="MykeywordShow"
|
|
|
:myevent="'bulkDensity'" @setValue="mykeywordset" v-if="InputEvent=='bulkDensity'"
|
|
@@ -327,7 +326,18 @@
|
|
|
<!-- <input v-model='gridList.bulkDensity' placeholder="请输入容重" name="input" type="digit" @input="obtainPrice"></input> -->
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="c-row ">
|
|
|
+ <view class="c-row" v-else>
|
|
|
+ <view class="title">蛋白</view>
|
|
|
+ <view class="con-list">
|
|
|
+ <MyNumberInput :myvalue="gridList.protein" :Isedit="Isedit" :IsShow="MykeywordShow"
|
|
|
+ :myevent="'protein'" @setValue="mykeywordset" v-if="InputEvent=='protein'"
|
|
|
+ @Cancelword="Cancelword" @goNext="goNext('protein')"></MyNumberInput>
|
|
|
+ <input v-else v-model='gridList.protein' placeholder="请输入蛋白"
|
|
|
+ @click="SetInputKey('protein')" name="input" type="digit" @input="obtainPrice"></input>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+
|
|
|
+ <view class="c-row " v-if="gridList.goodsName != '大豆'">
|
|
|
<view class="title">不完善粒(%)</view>
|
|
|
<view class="con-list">
|
|
|
<MyNumberInput :myvalue="gridList.imperfectGrain" :Isedit="Isedit" :IsShow="MykeywordShow"
|
|
@@ -337,6 +347,16 @@
|
|
|
placeholder="请输入不完整粒占比" name="input" type="digit"></input>
|
|
|
</view>
|
|
|
</view>
|
|
|
+ <view class="c-row" v-else>
|
|
|
+ <view class="title">完整粒率(%)</view>
|
|
|
+ <view class="con-list">
|
|
|
+ <MyNumberInput :myvalue="gridList.completeGrain" :Isedit="Isedit" :IsShow="MykeywordShow"
|
|
|
+ :myevent="'completeGrain'" @setValue="mykeywordset" v-if="InputEvent=='completeGrain'"
|
|
|
+ @Cancelword="Cancelword" @goNext="goNext('impurity')"></MyNumberInput>
|
|
|
+ <input v-else v-model='gridList.completeGrain'
|
|
|
+ placeholder="请输入完善粒率占比" name="input" type="digit"></input>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
<view class="c-row ">
|
|
|
<view class="title">杂质(%)</view>
|
|
|
<view class="con-list">
|
|
@@ -367,8 +387,37 @@
|
|
|
placeholder="请输入热损伤占比" name="input" type="digit"></input>
|
|
|
</view>
|
|
|
</view>
|
|
|
-
|
|
|
-
|
|
|
+ <view class="c-row" v-if="gridList.goodsName == '大豆'">
|
|
|
+ <view class="title">转基因</view>
|
|
|
+ <view class="con-list">
|
|
|
+ <MyNumberInput :myvalue="gridList.transgene" :Isedit="Isedit" :IsShow="MykeywordShow"
|
|
|
+ :myevent="'transgene'" @setValue="mykeywordset" v-if="InputEvent=='transgene'"
|
|
|
+ @Cancelword="Cancelword" @goNext="goNext('transgene')"></MyNumberInput>
|
|
|
+ <view @click="transgeneShow=true">
|
|
|
+ {{gridList.transgene}}
|
|
|
+ </view>
|
|
|
+ <!-- 转基因 -->
|
|
|
+ <u-picker :range="transgeneList" range-key="value" @confirm='transgeneClick($event)' v-model="transgeneShow"
|
|
|
+ mode="selector">
|
|
|
+ </u-picker>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="c-row" v-if="gridList.goodsName == '大豆'">
|
|
|
+ <view class="title">色泽/气味</view>
|
|
|
+ <view class="con-list">
|
|
|
+ <MyNumberInput :myvalue="gridList.colorLustre" :Isedit="Isedit" :IsShow="MykeywordShow"
|
|
|
+ :myevent="'colorLustre'" @setValue="mykeywordset" v-if="InputEvent=='colorLustre'"
|
|
|
+ @Cancelword="Cancelword" @goNext="goNext('colorLustre')"></MyNumberInput>
|
|
|
+ <!-- <input v-else v-model='gridList.colorLustre' @click="SetInputKey('colorLustre')"
|
|
|
+ placeholder="请选择色泽/气味是否正常" name="input" type="digit"></input> -->
|
|
|
+ <div @click="colorLustreShow = true">{{gridList.colorLustre}}</div>
|
|
|
+
|
|
|
+ <!-- 转基因 -->
|
|
|
+ <u-picker :range="colorLustreList" range-key="value" @confirm='colorLustreClick($event)' v-model="colorLustreShow"
|
|
|
+ mode="selector">
|
|
|
+ </u-picker>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
<view v-show="utils.getCurrectRoles('acquisitionQuality.initial')&&typevalue==3" class="c-row">
|
|
|
<view class="title">水分增价(元/吨)</view>
|
|
|
<view class="con-list">
|
|
@@ -457,11 +506,13 @@
|
|
|
<view class="but_css" @click="close">返回</view>
|
|
|
</view>
|
|
|
</u-popup>
|
|
|
+
|
|
|
</view>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
- const Equ_List = ['waterContent', 'bulkDensity', 'imperfectGrain', 'impurity', 'mildewGrain', 'jiaorenli'];
|
|
|
+ var that;
|
|
|
+ const Equ_List = ['waterContent', 'bulkDensity', 'imperfectGrain', 'impurity', 'mildewGrain', 'jiaorenli','protein','completeGrain'];
|
|
|
import dragButton from "@/components/drag-button/drag-button.vue";
|
|
|
import keyboard from "@/components/master-keyboard/master-keyboard.vue";
|
|
|
import MyNumberInput from "@/components/MyNumberInput.vue";
|
|
@@ -479,7 +530,9 @@
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
- redstatus:false,
|
|
|
+ isQY: false,
|
|
|
+ isZJ: false,
|
|
|
+ redstatus: false,
|
|
|
isShowPrint: false,
|
|
|
isShowAlert: false,
|
|
|
disabled1: false,
|
|
@@ -523,7 +576,7 @@
|
|
|
name: '他运',
|
|
|
value: '他运'
|
|
|
}],
|
|
|
- printId:'',
|
|
|
+ printId: '',
|
|
|
typevalue: '3',
|
|
|
coverTransform: 'translateY(0px)',
|
|
|
coverTransition: '0s',
|
|
@@ -549,7 +602,6 @@
|
|
|
username: "请更改昵称",
|
|
|
contractFlag: 10,
|
|
|
gridList: {
|
|
|
-
|
|
|
outType: '汽运',
|
|
|
natureOfGrainPurchase: '贸易粮',
|
|
|
type: '',
|
|
@@ -744,7 +796,11 @@
|
|
|
],
|
|
|
cangid: '',
|
|
|
|
|
|
- inType: "" //入库类型
|
|
|
+ inType: "" ,//入库类型
|
|
|
+ transgeneShow:false,
|
|
|
+ transgeneList:[{value:'非转基因'},{value:'转基因'}],
|
|
|
+ colorLustreShow : false,
|
|
|
+ colorLustreList:[{value:'正常'},{value:'异常'}]
|
|
|
}
|
|
|
},
|
|
|
// #ifndef MP
|
|
@@ -778,6 +834,8 @@
|
|
|
}
|
|
|
},
|
|
|
onLoad(options) {
|
|
|
+ that = this
|
|
|
+ console.log(that)
|
|
|
console.log(this.cangid)
|
|
|
this.commonWarehouseNo = options.commonWarehouseNo
|
|
|
this.warehouseCount = Number(options.warehouseCount) + 1
|
|
@@ -851,9 +909,11 @@
|
|
|
console.log(this.gridList)
|
|
|
this.gridListInit = this.gridList
|
|
|
},
|
|
|
- onShow() {
|
|
|
- if (this.utils.getCurrectRoles('acquisitionQuality.initial') && !this.utils.getCurrectRoles(
|
|
|
- 'acquisitionQuality.qview')) {
|
|
|
+ async onShow() {
|
|
|
+ this.isQY = this.utils.getCurrectRoles('acquisitionQuality.qview')
|
|
|
+ this.isZJ = this.utils.getCurrectRoles('acquisitionQuality.initial')
|
|
|
+
|
|
|
+ if (this.isZJ && !this.isQY) {
|
|
|
this.typevalue = '1'
|
|
|
this.contractFlag = 7
|
|
|
} else {
|
|
@@ -870,10 +930,11 @@
|
|
|
this.flag = 2
|
|
|
|
|
|
}
|
|
|
- this.$api.doRequest('get', '/inOutWarehouseTask/selectInOutWarehouseNo', {
|
|
|
+ await this.$api.doRequest('get', '/inOutWarehouseTask/selectInOutWarehouseNo', {
|
|
|
flag: this.flag,
|
|
|
warehouseName: this.gridList.warehouseName
|
|
|
}).then(res => {
|
|
|
+ console.log(1)
|
|
|
console.log(res)
|
|
|
for (let i = 0; i < res.data.data.length; i++) {
|
|
|
this.$set(res.data.data[i],'inOutTaskNo1',res.data.data[i].inOutTaskNo+(res.data.data[i].taskFlag?'('+res.data.data[i].taskFlag+')':''))
|
|
@@ -885,10 +946,11 @@
|
|
|
name: '他运',
|
|
|
value: '他运'
|
|
|
}]
|
|
|
- this.$api.doRequest('get', '/inOutWarehouseTask/getContractNo', {
|
|
|
+ await this.$api.doRequest('get', '/inOutWarehouseTask/getContractNo', {
|
|
|
warehouseName: this.gridList.warehouseName
|
|
|
}).then(res => {
|
|
|
uni.hideLoading();
|
|
|
+ console.log(2)
|
|
|
// console.log(res)
|
|
|
if (res.data.data.contractManagementInfoList) {
|
|
|
for (let i = 0; i < res.data.data.contractManagementInfoList.length; i++) {
|
|
@@ -921,42 +983,47 @@
|
|
|
|
|
|
this.gridList.customerNumberCard = _customerInfo.customerNumberCard
|
|
|
var that = this
|
|
|
- setTimeout(()=>{
|
|
|
- },1000)
|
|
|
+ setTimeout(() => {}, 1000)
|
|
|
console.log(this.gridList.goodsName)
|
|
|
- if(!this.gridList.goodsName){
|
|
|
+ if (!this.gridList.goodsName) {
|
|
|
this.gridList.goodsName = uni.getStorageSync('goodsName')
|
|
|
}
|
|
|
- if(this.gridList.goodsName){
|
|
|
- uni.showLoading({
|
|
|
- title: '加载中',
|
|
|
- mask: true
|
|
|
- })
|
|
|
- this.$api.doRequest('get', '/qualityInspectionManagement/getQualityInspectionManagementMap', {
|
|
|
+ if (this.gridList.goodsName) {
|
|
|
+ uni.showLoading({
|
|
|
+ title: '加载中',
|
|
|
+ mask: true
|
|
|
+ })
|
|
|
+ await this.$api.doRequest('get',
|
|
|
+ '/qualityInspectionManagement/getQualityInspectionManagementMap', {
|
|
|
goodsName: this.gridList.goodsName,
|
|
|
compId: uni.getStorageSync('pcUserInfo').compId,
|
|
|
customerNumberCard: this.gridList.customerNumberCard,
|
|
|
warehouseName: this.gridList.warehouseName
|
|
|
}).then(res => {
|
|
|
- uni.hideLoading();
|
|
|
- if(res.data.data.A+res.data.data.B+res.data.data.C*50>res.data.data.D-50){
|
|
|
- that.redstatus=true
|
|
|
- }else{
|
|
|
- that.redstatus=false
|
|
|
- }
|
|
|
- var a=res.data.data.A>0?'已完成'+Number(res.data.data.A).toFixed(2)+'吨,':''
|
|
|
- var b=res.data.data.B>0?'进行中'+Number(res.data.data.B).toFixed(2)+'吨,':''
|
|
|
- var c=res.data.data.C>0?'未称重'+Number(res.data.data.C)+'车':''
|
|
|
-
|
|
|
- that.gridList.volumeofbusiness=a+b+c
|
|
|
- console.log(that.gridList.volumeofbusiness)
|
|
|
- that.$forceUpdate()
|
|
|
- })
|
|
|
- }
|
|
|
-
|
|
|
+ uni.hideLoading();
|
|
|
+ if (res.data.data.A + res.data.data.B + res.data.data.C * 50 > res.data.data.D - 50) {
|
|
|
+ that.redstatus = true
|
|
|
+ } else {
|
|
|
+ that.redstatus = false
|
|
|
+ }
|
|
|
+ var a = res.data.data.A > 0 ? '已完成' + Number(res.data.data.A).toFixed(2) + '吨,' : ''
|
|
|
+ var b = res.data.data.B > 0 ? '进行中' + Number(res.data.data.B).toFixed(2) + '吨,' : ''
|
|
|
+ var c = res.data.data.C > 0 ? '未称重' + Number(res.data.data.C) + '车' : ''
|
|
|
+
|
|
|
+ that.gridList.volumeofbusiness = a + b + c
|
|
|
+ console.log(that.gridList.volumeofbusiness)
|
|
|
+ that.$forceUpdate()
|
|
|
+ })
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+ colorLustreClick(e){
|
|
|
+ this.gridList.colorLustre = this.colorLustreList[e[0]].value
|
|
|
+ },
|
|
|
+ transgeneClick(e){
|
|
|
+ this.gridList.transgene = this.transgeneList[e[0]].value
|
|
|
+ },
|
|
|
Cancelword() {
|
|
|
this.bottomHeight = '10rpx';
|
|
|
this.MykeywordShow = false;
|
|
@@ -1078,10 +1145,11 @@
|
|
|
obtainPrice() { //根据容重获取价格
|
|
|
if (this.gridList.goodsName && this.cangid && this.gridList.bulkDensity) {
|
|
|
// if (!this.gridList.dryGrainPrice || this.gridList.dryGrainPrice == 0) {
|
|
|
+ let quality = this.gridList.goodsName=='大豆'?this.gridList.protein:this.gridList.bulkDensity
|
|
|
this.$api.doRequest('get', '/purchasePrice/tidalGrainPrice', {
|
|
|
warehouseId: this.cangid,
|
|
|
goodsName: this.gridList.goodsName,
|
|
|
- bulkDensity: this.gridList.bulkDensity
|
|
|
+ bulkDensity: quality
|
|
|
}).then(res => {
|
|
|
if (res.data.data != 0) {
|
|
|
this.gridList.dryGrainPrice = res.data.data
|
|
@@ -1169,7 +1237,7 @@
|
|
|
console.log(this.gridList, 111111111111)
|
|
|
},
|
|
|
outtypepicker(e, status) {
|
|
|
- console.log(e,status)
|
|
|
+ console.log(e, status)
|
|
|
if (status == 0) {
|
|
|
this.gridList.outType = this.multiSelector[e[0]].name
|
|
|
} else {
|
|
@@ -1339,6 +1407,17 @@
|
|
|
this.gridList.gradeKey = this.gradeList[1].key
|
|
|
// this.gridList.grade = this.contractNolist.grade
|
|
|
this.gridList.inOutType = this.contractNolist.inOutType
|
|
|
+ if(this.gridList.goodsName == "大豆"){ //货名为大豆是设置默认
|
|
|
+ this.gridList.transgene= "非转基因"
|
|
|
+ this.gridList.reTransgene= "非转基因"
|
|
|
+ this.gridList.colorLustre = "正常"
|
|
|
+ this.gridList.reColorLustre = "正常"
|
|
|
+ }else{
|
|
|
+ delete this.gridList.transgene
|
|
|
+ delete this.gridList.reTransgene
|
|
|
+ delete this.gridList.colorLustre
|
|
|
+ delete this.gridList.reColorLustre
|
|
|
+ }
|
|
|
|
|
|
if (this.gridList.inOutType == '采购入库') {
|
|
|
this.warehouseTradeCount = '000' + this.warehouseTradeCount
|
|
@@ -1423,28 +1502,32 @@
|
|
|
this.tranCarInfoList = []
|
|
|
}
|
|
|
this.fleetNameList = this.contractNolist.tranCarInfoList1
|
|
|
- if(this.gridList.goodsName&&this.gridList.customerNumberCard){
|
|
|
+ if (this.gridList.goodsName && this.gridList.customerNumberCard) {
|
|
|
uni.showLoading({
|
|
|
- title: '加载中',
|
|
|
- mask: true
|
|
|
- })
|
|
|
- let that = this
|
|
|
- this.$api.doRequest('get', '/qualityInspectionManagement/getQualityInspectionManagementMap', {
|
|
|
- goodsName: this.gridList.goodsName,
|
|
|
- compId: uni.getStorageSync('pcUserInfo').compId,
|
|
|
- customerNumberCard: this.gridList.customerNumberCard
|
|
|
- }).then(res => {
|
|
|
- uni.hideLoading();
|
|
|
- if(res.data.data.A+res.data.data.B+res.data.data.C*50>res.data.data.D-50){
|
|
|
- that.redstatus=true
|
|
|
- }else{
|
|
|
- that.redstatus=false
|
|
|
+ title: '加载中',
|
|
|
+ mask: true
|
|
|
+ })
|
|
|
+ let that = this
|
|
|
+ this.$api.doRequest('get',
|
|
|
+ '/qualityInspectionManagement/getQualityInspectionManagementMap', {
|
|
|
+ goodsName: this.gridList.goodsName,
|
|
|
+ compId: uni.getStorageSync('pcUserInfo').compId,
|
|
|
+ customerNumberCard: this.gridList.customerNumberCard
|
|
|
+ }).then(res => {
|
|
|
+ uni.hideLoading();
|
|
|
+ if (res.data.data.A + res.data.data.B + res.data.data.C * 50 > res.data.data
|
|
|
+ .D - 50) {
|
|
|
+ that.redstatus = true
|
|
|
+ } else {
|
|
|
+ that.redstatus = false
|
|
|
}
|
|
|
- var a=res.data.data.A>0?'已完成'+Number(res.data.data.A).toFixed(2)+'吨,':''
|
|
|
- var b=res.data.data.B>0?'进行中'+Number(res.data.data.B).toFixed(2)+'吨,':''
|
|
|
- var c=res.data.data.C>0?'未称重'+Number(res.data.data.C)+'车':''
|
|
|
-
|
|
|
- that.gridList.volumeofbusiness=a+b+c
|
|
|
+ var a = res.data.data.A > 0 ? '已完成' + Number(res.data.data.A).toFixed(2) +
|
|
|
+ '吨,' : ''
|
|
|
+ var b = res.data.data.B > 0 ? '进行中' + Number(res.data.data.B).toFixed(2) +
|
|
|
+ '吨,' : ''
|
|
|
+ var c = res.data.data.C > 0 ? '未称重' + Number(res.data.data.C) + '车' : ''
|
|
|
+
|
|
|
+ that.gridList.volumeofbusiness = a + b + c
|
|
|
console.log(that.gridList.volumeofbusiness)
|
|
|
that.$forceUpdate()
|
|
|
})
|
|
@@ -1469,7 +1552,7 @@
|
|
|
})
|
|
|
})
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
},
|
|
|
close() {
|
|
|
this.isShowPrint = false
|
|
@@ -1495,24 +1578,10 @@
|
|
|
handleClick(e) {
|
|
|
this.gridList.carNumber = e.value //键盘输入值
|
|
|
},
|
|
|
- // confirmInfo() {
|
|
|
- // this.isShowAlert = true
|
|
|
- // },
|
|
|
- // alertBtn() {
|
|
|
- // this.$api.doRequest('get', '/qualityInspectionManagement/api/editQualityInspection', {
|
|
|
- // id: this.id,
|
|
|
- // flag:2
|
|
|
- // }).then(res => {
|
|
|
- // if(res.data.code=="200"){
|
|
|
- // this.$api.msg('提交成功!')
|
|
|
- // }else{
|
|
|
- // this.$api.msg('提交失败')
|
|
|
- // }
|
|
|
- // })
|
|
|
- // },
|
|
|
cancelClick() {
|
|
|
this.isShowAlert = false
|
|
|
},
|
|
|
+
|
|
|
waterContentChange() {
|
|
|
var that = this
|
|
|
if (this.gridList.goodsName) {
|
|
@@ -1549,9 +1618,9 @@
|
|
|
this.gridList.waterContent &&
|
|
|
this.gridList.grade
|
|
|
) {
|
|
|
-
|
|
|
+
|
|
|
uni.showLoading({
|
|
|
- title:"加载中"
|
|
|
+ title: "加载中"
|
|
|
})
|
|
|
this.$api.doRequest('get', '/purchasePrice/tidalGrainPrice', {
|
|
|
warehouseId: this.cangid,
|
|
@@ -1611,8 +1680,161 @@
|
|
|
}
|
|
|
return year + '' + mouth + '' + datetime
|
|
|
},
|
|
|
+ async addQualityInspection(type) {
|
|
|
+ if (type == 1) {
|
|
|
+ await this.$api.doRequest('post', '/qualityInspectionManagement/api/addQualityInspection', this
|
|
|
+ .gridList)
|
|
|
+ .then(res => {
|
|
|
+ console.log(res)
|
|
|
+ this.printId = res.data.data
|
|
|
+ uni.hideLoading()
|
|
|
+ if (res.data.code == 200) {
|
|
|
+ console.log("addQualityInspection")
|
|
|
+ this.$api.msg('提交成功')
|
|
|
+ this.gridList.warehouseId = this.cangid
|
|
|
+ this.gridList.compId = uni.getStorageSync(
|
|
|
+ 'pcUserInfo').compId
|
|
|
+ uni.setStorageSync("quality_print", this.gridList)
|
|
|
+ if (this.isZJ) {
|
|
|
+ this.isShowPrint = true
|
|
|
+ } else {
|
|
|
+ uni.navigateBack({})
|
|
|
+ }
|
|
|
+
|
|
|
+ console.log('that.gridList', this.gridList)
|
|
|
+ // uni.navigateBack({})
|
|
|
+ } else {
|
|
|
+ this.$api.msg('提交失败')
|
|
|
+ }
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (type == 2) {
|
|
|
+ await this.$api.doRequest('post', '/qualityInspectionManagement/api/addQualityInspection', this
|
|
|
+ .gridList)
|
|
|
+ .then(res => {
|
|
|
+ console.log("addQualityInspection")
|
|
|
+ this.printId = res.data.data
|
|
|
+ uni.hideLoading()
|
|
|
+ if (res.data.code == 200) {
|
|
|
+ this.$api.msg('提交成功')
|
|
|
+ this.gridList.warehouseId = this.cangid
|
|
|
+ this.gridList.compId = uni.getStorageSync('pcUserInfo').compId
|
|
|
+ uni.setStorageSync("quality_print", this.gridList)
|
|
|
+ if (this.isZJ) {
|
|
|
+ this.isShowPrint = true
|
|
|
+ } else {
|
|
|
+ uni.navigateBack({})
|
|
|
+ }
|
|
|
+ uni.setStorageSync(
|
|
|
+ 'checkcustomer', {}
|
|
|
+ )
|
|
|
+ console.log('that.gridList', this.gridList)
|
|
|
+ // uni.navigateBack({})
|
|
|
+ } else {
|
|
|
+ this.$api.msg('提交失败')
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
+ },
|
|
|
+ async inOutWarehouse(type) {
|
|
|
+ if (type == 1) {
|
|
|
+ await this.$api.doRequest('post', '/warehouseInOutInfo/InOutWarehouse', this.gridList)
|
|
|
+ .then(res => {
|
|
|
+ console.log("InOutWarehouse")
|
|
|
+ this.gridList.warehouseInOutId = res.data.data
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (type == 2) {
|
|
|
+ await this.$api.doRequest('post', '/warehouseInOutInfo/InOutWarehouse', this.gridList)
|
|
|
+ .then(res => {
|
|
|
+ console.log("InOutWarehouse")
|
|
|
+ if (this.isQY) {
|
|
|
+ if (!this.isZJ) {
|
|
|
+ this.gridList.statusFlag = 7
|
|
|
+ } else {
|
|
|
+ this.gridList.statusFlag = 0
|
|
|
+ }
|
|
|
+ }
|
|
|
+ this.gridList.warehouseInOutId = res.data.data
|
|
|
+ this.addQualityInspection(2)
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+
|
|
|
+ },
|
|
|
+ async cumulant(type) {
|
|
|
+ if (type == 1) {
|
|
|
+ await this.$api.doRequest('get', '/paymentManagement/cumulant', {
|
|
|
+ compId: uni.getStorageSync('pcUserInfo').compId,
|
|
|
+ customerNumberCard: this.gridList.customerNumberCard,
|
|
|
+ goodsName: this.gridList.goodsName,
|
|
|
+ })
|
|
|
+ .then(response => {
|
|
|
+ console.log("cumulant")
|
|
|
+ if (response.data.code == 200) {
|
|
|
+ for (let i = 0; i < this.purchasePriceList.length; i++) {
|
|
|
+ if (this.gridList.goodsName == this.purchasePriceList[i].goodsName) {
|
|
|
+ let count = (this.purchasePriceList[i].saleLimit - response.data.data /
|
|
|
+ 1000)
|
|
|
+ .toFixed(2)
|
|
|
+ console.log(count, this.purchasePriceList[i].saleLimit, response.data.data)
|
|
|
+
|
|
|
+ if (Number(count) <= 0) {
|
|
|
+ count = 0
|
|
|
+ this.$api.msg('该客户累计销售' + this.gridList.goodsName + (response.data
|
|
|
+ .data /
|
|
|
+ 1000).toFixed(2) + '吨,还可售粮' + count + '吨', )
|
|
|
+ uni.hideLoading()
|
|
|
+ break;
|
|
|
+ }
|
|
|
+
|
|
|
+ this.gridList.inOutFlag = 2
|
|
|
+ this.inOutWarehouse(2)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+
|
|
|
+ },
|
|
|
+ async getGoodsName() {
|
|
|
+ let that = this
|
|
|
+ await this.$api.doRequest('get', '/qualityInspectionManagement/api/goodsName', {
|
|
|
+ warehouseId: this.cangid
|
|
|
+ }).then(res => {
|
|
|
+ if (res.data.code != 200 && that.typevalue == 3) {
|
|
|
+ uni.showModal({
|
|
|
+ content: res.data.message,
|
|
|
+ showCancel: false
|
|
|
+ })
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ uni.showModal({
|
|
|
+ content: "确定提交质检信息?",
|
|
|
+ showCancel: true,
|
|
|
+ confirmText: '提交',
|
|
|
+ success: function(res) {
|
|
|
+ if (res.confirm) {
|
|
|
+ that.gridList.serviceManagementType = that.typevalue
|
|
|
+ if (that.typevalue == 3) {
|
|
|
+ that.cumulant(1)
|
|
|
+ return
|
|
|
+ }
|
|
|
+ that.gridList.inOutFlag = 2
|
|
|
+ that.inOutWarehouse(1)
|
|
|
+ that.addQualityInspection(1)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
+ })
|
|
|
+ },
|
|
|
submit() {
|
|
|
- debugger
|
|
|
+ console.log(this.isQY, "isQY")
|
|
|
+ console.log(this.isZJ, "isZJ")
|
|
|
if (this.typevalue == 3) {
|
|
|
if (this.outType) {
|
|
|
this.gridList.outType = this.outType
|
|
@@ -1638,11 +1860,6 @@
|
|
|
return
|
|
|
}
|
|
|
if (this.utils.getCurrectRoles('acquisitionQuality.initial')) {
|
|
|
-
|
|
|
- // if (!this.gridList.qualityNo) {
|
|
|
- // this.$api.msg('编号不能为空')
|
|
|
- // return
|
|
|
- // }
|
|
|
if (!this.gridList.binNumber) {
|
|
|
this.$api.msg('仓位不能为空')
|
|
|
return
|
|
@@ -1653,22 +1870,6 @@
|
|
|
return
|
|
|
}
|
|
|
}
|
|
|
- // if (this.gridList.waterPriceIncrease>10||this.gridList.waterPriceIncrease<0) {
|
|
|
- // this.$api.msg('水分增价输入错误')
|
|
|
- // return
|
|
|
- // }
|
|
|
- // if (this.gridList.waterPriceDeduction>10||this.gridList.waterPriceDeduction<0) {
|
|
|
- // this.$api.msg('水分扣价输入错误')
|
|
|
- // return
|
|
|
- // }
|
|
|
- // if (this.gridList.qualityPriceIncrease>10||this.gridList.qualityPriceIncrease<0) {
|
|
|
- // this.$api.msg('质量增价输入错误')
|
|
|
- // return
|
|
|
- // }
|
|
|
- // if (this.gridList.qualityPriceDeduction>10||this.gridList.qualityPriceDeduction<0) {
|
|
|
- // this.$api.msg('质量扣价输入错误')
|
|
|
- // return
|
|
|
- // }
|
|
|
if (!this.gridList.type) {
|
|
|
this.$api.msg('类型不能为空')
|
|
|
return
|
|
@@ -1699,8 +1900,9 @@
|
|
|
this.$api.msg('容重不能为空')
|
|
|
return
|
|
|
}
|
|
|
- } else {
|
|
|
- if (!this.gridList.bulkDensity) {
|
|
|
+ }
|
|
|
+ if(this.gridList.goodsName == "大豆"){
|
|
|
+ if (!this.gridList.protein) {
|
|
|
this.$api.msg('蛋白不能为空')
|
|
|
return
|
|
|
}
|
|
@@ -1716,7 +1918,7 @@
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- if (this.utils.getCurrectRoles('acquisitionQuality.qview')) {
|
|
|
+ if (this.isQY) {
|
|
|
if (this.typevalue == 3) {
|
|
|
if (!this.gridList.customerName) {
|
|
|
this.$api.msg('客户不能为空')
|
|
@@ -1736,516 +1938,42 @@
|
|
|
return
|
|
|
}
|
|
|
}
|
|
|
- var text = ''
|
|
|
- if (this.utils.getCurrectRoles('acquisitionQuality.qview') && !this.utils.getCurrectRoles(
|
|
|
- 'acquisitionQuality.initial')) {
|
|
|
- text = "确定提交钎样信息?"
|
|
|
- this.gridList.brazer = 1
|
|
|
+ // 钎样提交
|
|
|
+ if (this.isQY && !this.isZJ) {
|
|
|
+ that.gridList.serviceManagementType = that.typevalue
|
|
|
uni.showModal({
|
|
|
- content: text,
|
|
|
+ content: "确定提交钎样信息?",
|
|
|
showCancel: true,
|
|
|
confirmText: '提交',
|
|
|
success: function(res) {
|
|
|
if (res.confirm) {
|
|
|
- that.gridList.serviceManagementType = that.typevalue
|
|
|
if (that.typevalue == 3) {
|
|
|
-
|
|
|
uni.showLoading({
|
|
|
- title:"加载中"
|
|
|
+ title: "加载中"
|
|
|
})
|
|
|
- that.$api.doRequest('get', '/paymentManagement/cumulant', {
|
|
|
- compId: uni.getStorageSync('pcUserInfo').compId,
|
|
|
- customerNumberCard: that.gridList.customerNumberCard,
|
|
|
- goodsName: that.gridList.goodsName,
|
|
|
- })
|
|
|
- .then(response => {
|
|
|
- if (response.data.code == 200) {
|
|
|
- for (let i = 0; i < that.purchasePriceList.length; i++) {
|
|
|
- if (
|
|
|
- that.gridList.goodsName == that.purchasePriceList[
|
|
|
- i]
|
|
|
- .goodsName
|
|
|
- ) {
|
|
|
- let count = (that.purchasePriceList[i].saleLimit -
|
|
|
- response.data.data / 1000).toFixed(2)
|
|
|
- console.log(count, that.purchasePriceList[i]
|
|
|
- .saleLimit,
|
|
|
- response.data.data)
|
|
|
-
|
|
|
- if (Number(count) <= 0) {
|
|
|
- count = 0
|
|
|
- that.$api.msg('该客户累计销售' + that.gridList
|
|
|
- .goodsName +
|
|
|
- (
|
|
|
- response.data.data / 1000).toFixed(
|
|
|
- 2) +
|
|
|
- '吨,还可售粮' +
|
|
|
- count + '吨', )
|
|
|
- uni.hideLoading()
|
|
|
-
|
|
|
- } else {
|
|
|
- that.gridList.inOutFlag = 2
|
|
|
- that.$api.doRequest('post',
|
|
|
- '/warehouseInOutInfo/InOutWarehouse',
|
|
|
- that.gridList)
|
|
|
- .then(res => {
|
|
|
- if (that.utils.getCurrectRoles(
|
|
|
- 'acquisitionQuality.qview'
|
|
|
- )) {
|
|
|
- if (!that.utils
|
|
|
- .getCurrectRoles(
|
|
|
- 'acquisitionQuality.initial'
|
|
|
- )) {
|
|
|
- that.gridList.statusFlag =
|
|
|
- 7
|
|
|
- } else {
|
|
|
- that.gridList.statusFlag =
|
|
|
- 0
|
|
|
- }
|
|
|
- }
|
|
|
- that.gridList.warehouseInOutId =
|
|
|
- res
|
|
|
- .data.data
|
|
|
- that.$api.doRequest('post',
|
|
|
- '/qualityInspectionManagement/api/addQualityInspection',
|
|
|
- that.gridList)
|
|
|
- .then(res => {
|
|
|
- that.printId=res.data.data
|
|
|
- uni.hideLoading()
|
|
|
- if (res.data.code ==
|
|
|
- 200) {
|
|
|
- that.$api.msg(
|
|
|
- '提交成功')
|
|
|
- that.gridList
|
|
|
- .warehouseId =
|
|
|
- that
|
|
|
- .cangid
|
|
|
- that.gridList
|
|
|
- .compId =
|
|
|
- uni
|
|
|
- .getStorageSync(
|
|
|
- 'pcUserInfo'
|
|
|
- )
|
|
|
- .compId
|
|
|
- uni.setStorageSync(
|
|
|
- "quality_print",
|
|
|
- that
|
|
|
- .gridList)
|
|
|
- if (that.utils
|
|
|
- .getCurrectRoles(
|
|
|
- 'acquisitionQuality.initial'
|
|
|
- )) {
|
|
|
- that.isShowPrint =
|
|
|
- true
|
|
|
- } else {
|
|
|
- uni.navigateBack({})
|
|
|
- }
|
|
|
- uni.setStorageSync('checkcustomer',{})
|
|
|
- console.log(
|
|
|
- 'that.gridList',
|
|
|
- that
|
|
|
- .gridList)
|
|
|
- // uni.navigateBack({})
|
|
|
- } else {
|
|
|
- that.$api.msg(
|
|
|
- '提交失败')
|
|
|
- }
|
|
|
- })
|
|
|
- })
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- })
|
|
|
- } else {
|
|
|
- uni.showLoading({
|
|
|
- title:"加载中"
|
|
|
- })
|
|
|
- that.gridList.inOutFlag = 2
|
|
|
- that.$api.doRequest('post',
|
|
|
- '/warehouseInOutInfo/InOutWarehouse',
|
|
|
- that.gridList)
|
|
|
- .then(res => {
|
|
|
-
|
|
|
- that.gridList.warehouseInOutId = res.data.data
|
|
|
- that.$api.doRequest('post',
|
|
|
- '/qualityInspectionManagement/api/addQualityInspection',
|
|
|
- that.gridList)
|
|
|
- .then(res => {
|
|
|
- console.log(res)
|
|
|
- that.printId=res.data.data
|
|
|
- uni.hideLoading()
|
|
|
- if (res.data.code == 200) {
|
|
|
- that.$api.msg('提交成功')
|
|
|
- that.gridList.warehouseId = that.cangid
|
|
|
- that.gridList.compId = uni.getStorageSync(
|
|
|
- 'pcUserInfo').compId
|
|
|
- uni.setStorageSync("quality_print", that
|
|
|
- .gridList)
|
|
|
- if (that.utils.getCurrectRoles(
|
|
|
- 'acquisitionQuality.initial')) {
|
|
|
- that.isShowPrint = true
|
|
|
- } else {
|
|
|
- uni.navigateBack({})
|
|
|
- }
|
|
|
-
|
|
|
- console.log('that.gridList', that.gridList)
|
|
|
- // uni.navigateBack({})
|
|
|
- } else {
|
|
|
- that.$api.msg('提交失败')
|
|
|
- }
|
|
|
- })
|
|
|
- })
|
|
|
+ that.cumulant(1)
|
|
|
+ return
|
|
|
}
|
|
|
-
|
|
|
+ uni.showLoading({
|
|
|
+ title: "加载中"
|
|
|
+ })
|
|
|
+ that.gridList.inOutFlag = 2
|
|
|
+ that.inOutWarehouse(1)
|
|
|
+ that.addQualityInspection(1)
|
|
|
}
|
|
|
+
|
|
|
}
|
|
|
})
|
|
|
} else {
|
|
|
- text = "确定提交质检信息?"
|
|
|
this.gridList.brazer = 0
|
|
|
- this.$api.doRequest('get', '/qualityInspectionManagement/api/goodsName', {
|
|
|
- warehouseId: this.cangid
|
|
|
- }).then(res => {
|
|
|
- if (res.data.code != 200 && that.typevalue == 3) {
|
|
|
- uni.showModal({
|
|
|
- content: res.data.message,
|
|
|
- showCancel: false
|
|
|
- })
|
|
|
- return;
|
|
|
- } else {
|
|
|
- uni.showModal({
|
|
|
- content: text,
|
|
|
- showCancel: true,
|
|
|
- confirmText: '提交',
|
|
|
- success: function(res) {
|
|
|
- if (res.confirm) {
|
|
|
- that.gridList.serviceManagementType = that.typevalue
|
|
|
- if (that.typevalue == 3) {
|
|
|
- that.$api.doRequest('get', '/paymentManagement/cumulant', {
|
|
|
- compId: uni.getStorageSync('pcUserInfo')
|
|
|
- .compId,
|
|
|
- customerNumberCard: that.gridList
|
|
|
- .customerNumberCard,
|
|
|
- goodsName: that.gridList.goodsName,
|
|
|
- })
|
|
|
- .then(response => {
|
|
|
- if (response.data.code == 200) {
|
|
|
- for (let i = 0; i < that.purchasePriceList
|
|
|
- .length; i++) {
|
|
|
- if (
|
|
|
- that.gridList.goodsName == that
|
|
|
- .purchasePriceList[i]
|
|
|
- .goodsName
|
|
|
- ) {
|
|
|
- let count = (that
|
|
|
- .purchasePriceList[i]
|
|
|
- .saleLimit -
|
|
|
- response.data.data / 1000)
|
|
|
- .toFixed(2)
|
|
|
- console.log(count, that
|
|
|
- .purchasePriceList[i]
|
|
|
- .saleLimit,
|
|
|
- response.data.data)
|
|
|
-
|
|
|
- if (Number(count) <= 0) {
|
|
|
- count = 0
|
|
|
- that.$api.msg('该客户累计销售' + that
|
|
|
- .gridList.goodsName +
|
|
|
- (
|
|
|
- response.data
|
|
|
- .data / 1000)
|
|
|
- .toFixed(2) +
|
|
|
- '吨,还可售粮' +
|
|
|
- count + '吨', )
|
|
|
-
|
|
|
- } else {
|
|
|
- that.gridList.inOutFlag = 2
|
|
|
- that.$api.doRequest('post',
|
|
|
- '/warehouseInOutInfo/InOutWarehouse',
|
|
|
- that.gridList)
|
|
|
- .then(res => {
|
|
|
- if (that.utils
|
|
|
- .getCurrectRoles(
|
|
|
- 'acquisitionQuality.qview'
|
|
|
- )) {
|
|
|
- if (!that.utils
|
|
|
- .getCurrectRoles(
|
|
|
- 'acquisitionQuality.initial'
|
|
|
- )) {
|
|
|
- that.gridList
|
|
|
- .statusFlag =
|
|
|
- 7
|
|
|
- } else {
|
|
|
- that.gridList
|
|
|
- .statusFlag =
|
|
|
- 0
|
|
|
- }
|
|
|
- }
|
|
|
- that.gridList.warehouseInOutId =
|
|
|
- res.data.data
|
|
|
- that.$api.doRequest(
|
|
|
- 'post',
|
|
|
- '/qualityInspectionManagement/api/addQualityInspection',
|
|
|
- that.gridList)
|
|
|
- .then(res => {
|
|
|
- that.printId=res.data.data
|
|
|
- if (res
|
|
|
- .data
|
|
|
- .code ==
|
|
|
- 200
|
|
|
- ) {
|
|
|
- that.$api
|
|
|
- .msg(
|
|
|
- '提交成功'
|
|
|
- )
|
|
|
- that.gridList
|
|
|
- .warehouseId =
|
|
|
- that
|
|
|
- .cangid
|
|
|
- that.gridList
|
|
|
- .compId =
|
|
|
- uni
|
|
|
- .getStorageSync(
|
|
|
- 'pcUserInfo'
|
|
|
- )
|
|
|
- .compId
|
|
|
- uni.setStorageSync(
|
|
|
- "quality_print",
|
|
|
- that
|
|
|
- .gridList
|
|
|
- )
|
|
|
- if (that
|
|
|
- .utils
|
|
|
- .getCurrectRoles(
|
|
|
- 'acquisitionQuality.initial'
|
|
|
- )
|
|
|
- ) {
|
|
|
- that.isShowPrint =
|
|
|
- true
|
|
|
- } else {
|
|
|
- uni.navigateBack({})
|
|
|
- }
|
|
|
-
|
|
|
- console
|
|
|
- .log(
|
|
|
- 'that.gridList',
|
|
|
- that
|
|
|
- .gridList
|
|
|
- )
|
|
|
- // uni.navigateBack({})
|
|
|
- } else {
|
|
|
- that.$api
|
|
|
- .msg(
|
|
|
- '提交失败'
|
|
|
- )
|
|
|
- }
|
|
|
- })
|
|
|
- })
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- })
|
|
|
- } else {
|
|
|
-
|
|
|
- that.gridList.inOutFlag = 2
|
|
|
- that.$api.doRequest('post',
|
|
|
- '/warehouseInOutInfo/InOutWarehouse',
|
|
|
- that.gridList)
|
|
|
- .then(res => {
|
|
|
-
|
|
|
- that.gridList.warehouseInOutId = res.data.data
|
|
|
- that.$api.doRequest('post',
|
|
|
- '/qualityInspectionManagement/api/addQualityInspection',
|
|
|
- that.gridList)
|
|
|
- .then(res => {
|
|
|
- that.printId=res.data.data
|
|
|
- if (res.data.code == 200) {
|
|
|
- that.$api.msg('提交成功')
|
|
|
- that.gridList.warehouseId =
|
|
|
- that.cangid
|
|
|
- that.gridList.compId = uni
|
|
|
- .getStorageSync(
|
|
|
- 'pcUserInfo').compId
|
|
|
- uni.setStorageSync(
|
|
|
- "quality_print", that
|
|
|
- .gridList)
|
|
|
- if (that.utils.getCurrectRoles(
|
|
|
- 'acquisitionQuality.initial'
|
|
|
- )) {
|
|
|
- that.isShowPrint = true
|
|
|
- } else {
|
|
|
- uni.navigateBack({})
|
|
|
- }
|
|
|
-
|
|
|
- console.log('that.gridList',
|
|
|
- that.gridList)
|
|
|
- // uni.navigateBack({})
|
|
|
- } else {
|
|
|
- that.$api.msg('提交失败')
|
|
|
- }
|
|
|
- })
|
|
|
- })
|
|
|
- }
|
|
|
-
|
|
|
- }
|
|
|
- }
|
|
|
- })
|
|
|
- }
|
|
|
- })
|
|
|
+ this.getGoodsName()
|
|
|
}
|
|
|
|
|
|
- // if (!this.gridList.storageTagNo) {
|
|
|
- // this.$api.msg('囤位号不能为空')
|
|
|
- // return
|
|
|
- // }
|
|
|
- // if (this.gridList.storageTagNo&&this.gridList.storageTagNo.length > 10) {
|
|
|
- // this.$api.msg('囤位号不能为空')
|
|
|
- // return
|
|
|
- // }
|
|
|
+ // // 质检提交
|
|
|
+ // if (!this.isQY && this.isZJ) {
|
|
|
|
|
|
- // if (this.gridList.buckleWeightRatio < 0 || this.gridList.buckleWeightRatio > 2) {
|
|
|
- // this.$api.msg('扣重比输入错误')
|
|
|
- // return
|
|
|
- // }
|
|
|
- // if (
|
|
|
- // String(this.gridList.buckleWeightRatio).indexOf('.') != -1 &&
|
|
|
- // String(this.gridList.buckleWeightRatio).length -
|
|
|
- // (String(this.gridList.buckleWeightRatio).indexOf('.') + 1) > 2) {
|
|
|
- // this.$api.msg('扣重比输入错误')
|
|
|
- // return
|
|
|
// }
|
|
|
|
|
|
- // uni.showModal({
|
|
|
- // content: text,
|
|
|
- // showCancel: true,
|
|
|
- // confirmText: '提交',
|
|
|
- // success: function(res) {
|
|
|
- // if (res.confirm) {
|
|
|
- // that.gridList.serviceManagementType = that.typevalue
|
|
|
- // if (that.typevalue == 3) {
|
|
|
- // that.$api.doRequest('get', '/paymentManagement/cumulant', {
|
|
|
- // compId: uni.getStorageSync('pcUserInfo').compId,
|
|
|
- // customerNumberCard: that.gridList.customerNumberCard,
|
|
|
- // goodsName: that.gridList.goodsName,
|
|
|
- // })
|
|
|
- // .then(response => {
|
|
|
- // if (response.data.code == 200) {
|
|
|
- // for (let i = 0; i < that.purchasePriceList.length; i++) {
|
|
|
- // if (
|
|
|
- // that.gridList.goodsName == that.purchasePriceList[i]
|
|
|
- // .goodsName
|
|
|
- // ) {
|
|
|
- // let count = (that.purchasePriceList[i].saleLimit -
|
|
|
- // response.data.data / 1000).toFixed(2)
|
|
|
- // console.log(count, that.purchasePriceList[i].saleLimit,
|
|
|
- // response.data.data)
|
|
|
-
|
|
|
- // if (Number(count) <= 0) {
|
|
|
- // count = 0
|
|
|
- // that.$api.msg('该客户累计销售' + that.gridList.goodsName +
|
|
|
- // (
|
|
|
- // response.data.data / 1000).toFixed(2) +
|
|
|
- // '吨,还可售粮' +
|
|
|
- // count + '吨', )
|
|
|
-
|
|
|
- // } else {
|
|
|
- // that.gridList.inOutFlag = 2
|
|
|
- // that.$api.doRequest('post',
|
|
|
- // '/warehouseInOutInfo/InOutWarehouse',
|
|
|
- // that.gridList)
|
|
|
- // .then(res => {
|
|
|
- // if (that.utils.getCurrectRoles(
|
|
|
- // 'acquisitionQuality.qview')) {
|
|
|
- // if (!that.utils.getCurrectRoles(
|
|
|
- // 'acquisitionQuality.initial'
|
|
|
- // )) {
|
|
|
- // that.gridList.statusFlag = 7
|
|
|
- // } else {
|
|
|
- // that.gridList.statusFlag = 0
|
|
|
- // }
|
|
|
- // }
|
|
|
- // that.gridList.warehouseInOutId = res
|
|
|
- // .data.data
|
|
|
- // that.$api.doRequest('post',
|
|
|
- // '/qualityInspectionManagement/api/addQualityInspection',
|
|
|
- // that.gridList)
|
|
|
- // .then(res => {
|
|
|
- // if (res.data.code == 200) {
|
|
|
- // that.$api.msg('提交成功')
|
|
|
- // that.gridList
|
|
|
- // .warehouseId = that
|
|
|
- // .cangid
|
|
|
- // that.gridList.compId =
|
|
|
- // uni.getStorageSync(
|
|
|
- // 'pcUserInfo')
|
|
|
- // .compId
|
|
|
- // uni.setStorageSync(
|
|
|
- // "quality_print",
|
|
|
- // that.gridList)
|
|
|
- // if (that.utils
|
|
|
- // .getCurrectRoles(
|
|
|
- // 'acquisitionQuality.initial'
|
|
|
- // )) {
|
|
|
- // that.isShowPrint =
|
|
|
- // true
|
|
|
- // } else {
|
|
|
- // uni.navigateBack({})
|
|
|
- // }
|
|
|
-
|
|
|
- // console.log(
|
|
|
- // 'that.gridList',
|
|
|
- // that.gridList)
|
|
|
- // // uni.navigateBack({})
|
|
|
- // } else {
|
|
|
- // that.$api.msg('提交失败')
|
|
|
- // }
|
|
|
- // })
|
|
|
- // })
|
|
|
- // }
|
|
|
- // }
|
|
|
- // }
|
|
|
- // }
|
|
|
- // })
|
|
|
- // } else {
|
|
|
-
|
|
|
- // that.gridList.inOutFlag = 2
|
|
|
- // that.$api.doRequest('post',
|
|
|
- // '/warehouseInOutInfo/InOutWarehouse',
|
|
|
- // that.gridList)
|
|
|
- // .then(res => {
|
|
|
-
|
|
|
- // that.gridList.warehouseInOutId = res.data.data
|
|
|
- // that.$api.doRequest('post',
|
|
|
- // '/qualityInspectionManagement/api/addQualityInspection',
|
|
|
- // that.gridList)
|
|
|
- // .then(res => {
|
|
|
- // if (res.data.code == 200) {
|
|
|
- // that.$api.msg('提交成功')
|
|
|
- // that.gridList.warehouseId = that.cangid
|
|
|
- // that.gridList.compId = uni.getStorageSync(
|
|
|
- // 'pcUserInfo').compId
|
|
|
- // uni.setStorageSync("quality_print", that.gridList)
|
|
|
- // if (that.utils.getCurrectRoles(
|
|
|
- // 'acquisitionQuality.initial')) {
|
|
|
- // that.isShowPrint = true
|
|
|
- // } else {
|
|
|
- // uni.navigateBack({})
|
|
|
- // }
|
|
|
-
|
|
|
- // console.log('that.gridList', that.gridList)
|
|
|
- // // uni.navigateBack({})
|
|
|
- // } else {
|
|
|
- // that.$api.msg('提交失败')
|
|
|
- // }
|
|
|
- // })
|
|
|
- // })
|
|
|
- // }
|
|
|
-
|
|
|
- // }
|
|
|
- // }
|
|
|
- // })
|
|
|
},
|
|
|
gradepicker(e) {
|
|
|
console.log(e)
|