|
@@ -30,22 +30,32 @@
|
|
|
|
|
|
<ws-form-item label="囤位号" span="1" prop="storageTagNo">
|
|
|
<ws-input v-model="inspect.storageTagNo" placeholder="请输入囤位号" maxlength="15" size="small"
|
|
|
- :disabled="disabled" />
|
|
|
+ :disabled="disabled3" />
|
|
|
</ws-form-item>
|
|
|
- <ws-form-item label="车牌号" span="1" prop="carNumber">
|
|
|
- <!-- <el-select v-model="inspect.carNumber" clearable filterable placeholder="请选择" class="typeselect" @change="shipperNameChange"
|
|
|
- :disabled="disabled1">
|
|
|
- <el-option v-for="(item,index) in carNumberList" :key="index" :label="item.carNo" :value="index" />
|
|
|
- </el-select> -->
|
|
|
- <ws-input v-model="inspect.carNumber" placeholder="请输入车牌号" maxlength="10" size="small"
|
|
|
+ <ws-form-item label="购粮性质" span="1" prop="natureOfGrainPurchase">
|
|
|
+ <ws-input v-model="inspect.natureOfGrainPurchase" placeholder="请输入购粮性质" maxlength="10" size="small"
|
|
|
:disabled="disabled" />
|
|
|
</ws-form-item>
|
|
|
+ <ws-form-item label="货名" span="1" prop="goodsName">
|
|
|
+ <ws-select v-model="inspect.goodsName" placeholder="" class="typeselect" :disabled="disabledName" @change="waterContentChange">
|
|
|
+ <ws-option v-for="item in goodNameList" :key="item.goodsName" :label="item.goodsName"
|
|
|
+ :value="item.goodsName" />
|
|
|
+ </ws-select>
|
|
|
+ </ws-form-item>
|
|
|
<ws-form-item label="客户" span="1" prop="customerName">
|
|
|
<el-select v-model="inspect.customerName" clearable filterable placeholder="请选择" class="typeselect"
|
|
|
@change="customerChange" :disabled="disabled1">
|
|
|
<el-option v-for="item in customerList" :key="item.valueKey" :label="item.value" :value="item.value" />
|
|
|
</el-select>
|
|
|
</ws-form-item>
|
|
|
+ <ws-form-item label="车牌号" span="1" prop="carNumber">
|
|
|
+ <!-- <el-select v-model="inspect.carNumber" clearable filterable placeholder="请选择" class="typeselect" @change="shipperNameChange"
|
|
|
+ :disabled="disabled1">
|
|
|
+ <el-option v-for="(item,index) in carNumberList" :key="index" :label="item.carNo" :value="index" />
|
|
|
+ </el-select> -->
|
|
|
+ <ws-input @change='carnochange' v-model="inspect.carNumber" placeholder="请输入车牌号" maxlength="10" size="small"
|
|
|
+ :disabled="disabled" />
|
|
|
+ </ws-form-item>
|
|
|
<ws-form-item label="箱号-1" span="1" prop="boxNo">
|
|
|
<ws-input :disabled="disabled" v-model="inspect.boxNo" placeholder="请输入箱号" maxlength="20" size="small" />
|
|
|
</ws-form-item>
|
|
@@ -61,13 +71,7 @@
|
|
|
<ws-input :disabled="disabled" v-model="inspect.titleNoOther" placeholder="请输入封号" maxlength="20"
|
|
|
size="small" />
|
|
|
</ws-form-item>
|
|
|
- <ws-form-item label="货名" span="1" prop="goodsName">
|
|
|
- <ws-select v-model="inspect.goodsName" placeholder="" class="typeselect" :disabled="disabledName" @change="waterContentChange">
|
|
|
- <ws-option v-for="item in goodNameList" :key="item.goodsName" :label="item.goodsName"
|
|
|
- :value="item.goodsName" />
|
|
|
- </ws-select>
|
|
|
- </ws-form-item>
|
|
|
-
|
|
|
+
|
|
|
<ws-form-item v-if="inspect.paramType != '1'" label="扣重比" span="1" prop="buckleWeightRatio">
|
|
|
<ws-input type="number" @mousewheel.native.prevent v-model="inspect.buckleWeightRatio"
|
|
|
placeholder="请输入扣重比" maxlength="100" size="small" :disabled="disabled" />
|
|
@@ -86,10 +90,6 @@
|
|
|
<ws-option v-for="item in typeList" :key="item" :label="item" :value="item" />
|
|
|
</ws-select>
|
|
|
</ws-form-item>
|
|
|
- <ws-form-item label="购粮性质" span="1" prop="natureOfGrainPurchase">
|
|
|
- <ws-input v-model="inspect.natureOfGrainPurchase" placeholder="请输入购粮性质" maxlength="10" size="small"
|
|
|
- :disabled="disabled" />
|
|
|
- </ws-form-item>
|
|
|
<ws-form-item label="净重单价(元/公斤)" span="1" prop="tidalGrainPrice" v-if="inspect.type == '潮粮'">
|
|
|
<ws-input type="number" @mousewheel.native.prevent v-model="inspect.tidalGrainPrice" placeholder="请输入净重单价"
|
|
|
maxlength="10" size="small" :disabled="disabled2" />
|
|
@@ -98,12 +98,16 @@
|
|
|
<ws-input type="number" @mousewheel.native.prevent v-model="inspect.dryGrainPrice" placeholder="请输入干粮单价"
|
|
|
maxlength="10" size="small" :disabled="disabled2" />
|
|
|
</ws-form-item>
|
|
|
- <el-row>
|
|
|
<ws-form-item label="复检备注" span="2" prop="reMemo" v-if="information == '编辑复检' || statusShow == '已复检'">
|
|
|
<ws-input type="textarea" v-model="inspect.reMemo" placeholder="请输入复检备注" maxlength="300" v-if="statusShow != '已复检'" />
|
|
|
<ws-input type="textarea" v-model="inspect.reMemo" placeholder="请输入复检备注" maxlength="300" v-else disabled />
|
|
|
</ws-form-item>
|
|
|
- </el-row>
|
|
|
+ <ws-form-item label="车型" span="2" prop="dryGrainPrice" v-if="types==4&&warehouseName=='鲅鱼圈金信库'||types==1&&warehouseName=='鲅鱼圈金信库'">
|
|
|
+ <el-select v-model="inspect.carModel" clearable filterable placeholder="请选择" class="typeselect"
|
|
|
+ :disabled="disabled3">
|
|
|
+ <el-option v-for="item in cartypeList" :key="item.constValue" :label="item.constValue" :value="item.constValue" />
|
|
|
+ </el-select>
|
|
|
+ </ws-form-item>
|
|
|
</ws-info-table>
|
|
|
|
|
|
<div class="title">质检数据</div>
|
|
@@ -182,7 +186,8 @@
|
|
|
getDryGrainPrice,
|
|
|
getshippinginfo,
|
|
|
postCheck,
|
|
|
- getQRcode
|
|
|
+ getQRcode,
|
|
|
+ getcartype
|
|
|
} from '@/model/houseSelfCollect/index'
|
|
|
import {
|
|
|
packList
|
|
@@ -212,6 +217,7 @@
|
|
|
disabled: false,
|
|
|
disabled1: false,
|
|
|
disabled2: false,
|
|
|
+ disabled3:false,
|
|
|
disabledName: false,
|
|
|
types: '1',
|
|
|
information: '添加初检',
|
|
@@ -219,6 +225,7 @@
|
|
|
gradeList: [],
|
|
|
customerList: [],
|
|
|
getbinNumberList: [],
|
|
|
+ cartypeList:[],
|
|
|
cangid: '', //仓库id
|
|
|
warehouseName: '',
|
|
|
unitPrice: 0,
|
|
@@ -232,7 +239,7 @@
|
|
|
num: 0,
|
|
|
tipFlag: true,
|
|
|
allowEdit: 0,
|
|
|
- statusShow :""
|
|
|
+ statusShow :''
|
|
|
}
|
|
|
},
|
|
|
activated() {
|
|
@@ -266,6 +273,7 @@
|
|
|
this.disabled1 = true
|
|
|
this.disabled2 = true
|
|
|
this.disabledName = true
|
|
|
+ this.disabled3=true
|
|
|
this.information = '查看质检'
|
|
|
} else if (this.types == 3) {
|
|
|
this.disabled = false
|
|
@@ -305,7 +313,7 @@
|
|
|
postCheck({id:this.id,flag:2})
|
|
|
.toPromise()
|
|
|
.then((response) => {
|
|
|
- if(response == "OK"){
|
|
|
+ if(response == 'OK'){
|
|
|
this.$message.success('提交成功')
|
|
|
this.$router.push({path: 'inspectionManagement' })
|
|
|
}else{
|
|
@@ -720,7 +728,7 @@
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
- if( this.information != "编辑复检"){
|
|
|
+ if( this.information != '编辑复检'){
|
|
|
if (!this.inspect.waterContent) {
|
|
|
this.$message({
|
|
|
message: '水分不能为空',
|
|
@@ -924,8 +932,9 @@
|
|
|
let customers = e.split('(')
|
|
|
this.inspect.customerName = customers[0]
|
|
|
for (let i = 0; i < this.customerList1.length; i++) {
|
|
|
- console.log(this.customerList1[i].customerName, this.inspect.customerName)
|
|
|
+ // console.log(this.customerList1[i].customerName, this.customerList1[i])
|
|
|
if (this.customerList1[i].customerName == this.inspect.customerName) {
|
|
|
+ // console.log(this.customerList1[i])
|
|
|
this.inspect.customerNumberCard = this.customerList1[i].customerNumberCard
|
|
|
}
|
|
|
}
|
|
@@ -980,7 +989,29 @@
|
|
|
this.$set(this.inspect, 'dryGrainPrice', response)
|
|
|
})
|
|
|
}
|
|
|
-
|
|
|
+ //客户
|
|
|
+ getcustomer({
|
|
|
+ warehouseId: this.cangid,
|
|
|
+ goodsName:this.inspect.goodsName
|
|
|
+ })
|
|
|
+ .toPromise()
|
|
|
+ .then((response) => {
|
|
|
+ this.customerList1 = response
|
|
|
+ this.customerList = []
|
|
|
+ let customer = response
|
|
|
+ for (let i = 0; i < response.length; i++) {
|
|
|
+ if (response[i].supplier) {
|
|
|
+ customer = response[i].customerName + '(' + response[i].customerPhone + ')' + '-' + response[i]
|
|
|
+ .supplier
|
|
|
+ } else {
|
|
|
+ customer = response[i].customerName + '(' + response[i].customerPhone + ')'
|
|
|
+ }
|
|
|
+ this.customerList.push({
|
|
|
+ valueKey: i,
|
|
|
+ value: customer,
|
|
|
+ })
|
|
|
+ }
|
|
|
+ })
|
|
|
for (var i = 0; i < this.purchasePriceList.length; i++) {
|
|
|
if (this.purchasePriceList[i].goodsName == this.inspect.goodsName) {
|
|
|
this.$set(this.inspect, 'buckleWeightRatio', this.purchasePriceList[i].deductWeight)
|
|
@@ -1065,6 +1096,11 @@
|
|
|
},
|
|
|
|
|
|
getList(ids) {
|
|
|
+ // 车型
|
|
|
+ getcartype({constId:'QUA1'}).toPromise()
|
|
|
+ .then((response) => {
|
|
|
+ this.cartypeList=response
|
|
|
+ })
|
|
|
// 货名
|
|
|
getinspectLookGoods({
|
|
|
warehouseId: this.cangid
|
|
@@ -1083,29 +1119,6 @@
|
|
|
.then((response) => {
|
|
|
this.gradeList = response
|
|
|
})
|
|
|
- //客户
|
|
|
- getcustomer({
|
|
|
- compId: localStorage.getItem('ws-pf_compId'),
|
|
|
- authenticationStatusKey: 7
|
|
|
- })
|
|
|
- .toPromise()
|
|
|
- .then((response) => {
|
|
|
- this.customerList1 = response
|
|
|
- this.customerList = []
|
|
|
- let customer = response
|
|
|
- for (let i = 0; i < response.length; i++) {
|
|
|
- if (response[i].supplier) {
|
|
|
- customer = response[i].customerName + '(' + response[i].customerPhone + ')' + '-' + response[i]
|
|
|
- .supplier
|
|
|
- } else {
|
|
|
- customer = response[i].customerName + '(' + response[i].customerPhone + ')'
|
|
|
- }
|
|
|
- this.customerList.push({
|
|
|
- valueKey: i,
|
|
|
- value: customer,
|
|
|
- })
|
|
|
- }
|
|
|
- })
|
|
|
getshippinginfo({
|
|
|
compId: localStorage.getItem('ws-pf_compId'),
|
|
|
warehouseName: this.warehouseName
|