|
@@ -77,6 +77,7 @@
|
|
|
<ws-input
|
|
|
@input="grossWeightchange"
|
|
|
v-model="deptBudgetList.grossWeight"
|
|
|
+ type="number" @mousewheel.native.prevent
|
|
|
placeholder="请输入毛重"
|
|
|
maxlength="20"
|
|
|
size="small"
|
|
@@ -88,6 +89,7 @@
|
|
|
<ws-input
|
|
|
@input="tarechange"
|
|
|
v-model="deptBudgetList.tare"
|
|
|
+ type="number" @mousewheel.native.prevent
|
|
|
placeholder="请输入皮重"
|
|
|
maxlength="100"
|
|
|
size="small"
|
|
@@ -107,6 +109,7 @@
|
|
|
<ws-input
|
|
|
@input='pureweight'
|
|
|
v-model="deptBudgetList.buckleWeightRatio"
|
|
|
+ type="number" @mousewheel.native.prevent
|
|
|
placeholder="请输入扣重比"
|
|
|
maxlength="100"
|
|
|
size="small"
|
|
@@ -116,6 +119,7 @@
|
|
|
<ws-input
|
|
|
@input='pureweight'
|
|
|
v-model="deptBudgetList.solidGrainWater"
|
|
|
+ type="number" @mousewheel.native.prevent
|
|
|
placeholder="请输入干粮水分占比"
|
|
|
maxlength="100"
|
|
|
size="small"
|
|
@@ -125,6 +129,7 @@
|
|
|
<ws-input
|
|
|
@input='pureweight'
|
|
|
v-model="deptBudgetList.tidalGrainWater"
|
|
|
+ type="number" @mousewheel.native.prevent
|
|
|
placeholder="请输入潮粮水分占比"
|
|
|
maxlength="100"
|
|
|
size="small"
|
|
@@ -134,20 +139,12 @@
|
|
|
<ws-input
|
|
|
disabled
|
|
|
v-model="deptBudgetList.pureWeight"
|
|
|
+ type="number" @mousewheel.native.prevent
|
|
|
placeholder="不可编辑,自动计算"
|
|
|
maxlength="100"
|
|
|
size="small"
|
|
|
/>
|
|
|
</ws-form-item>
|
|
|
- <!--净重(吨)-->
|
|
|
- <ws-form-item label="扣款" span="1" prop="deductionAmount">
|
|
|
- <ws-input
|
|
|
- v-model="deptBudgetList.deductionAmount"
|
|
|
- placeholder="请输入扣款金额"
|
|
|
- maxlength="120"
|
|
|
- size="small"
|
|
|
- />
|
|
|
- </ws-form-item>
|
|
|
<!-- 品级 -->
|
|
|
<ws-form-item label="品级" span="1" class="readonly">
|
|
|
<ws-select
|
|
@@ -222,19 +219,22 @@
|
|
|
</ws-form-item>
|
|
|
</ws-info-table>
|
|
|
</div>
|
|
|
- <div class="small-title">上传仓库照片</div>
|
|
|
- <ws-upload
|
|
|
- ref="upload"
|
|
|
- table-name="maintain_work_order"
|
|
|
- oss-key="mainPlan"
|
|
|
- :comp-id="compId"
|
|
|
- :appendix-ids="appendixIdsAdd"
|
|
|
- :vesselId="deptBudgetList.addressUrl"
|
|
|
- :size-limit="size"
|
|
|
- @uploadSuccess="uploadSuccess"
|
|
|
- @onChange="onChange"
|
|
|
- accept=".jpg, .jpeg, .png, .pdf, .doc, .zip, .rar"
|
|
|
- />
|
|
|
+ <div class="small-title">上传磅单照片</div>
|
|
|
+ <el-upload
|
|
|
+ action="https://www.zthymaoyi.com/upload/admin"
|
|
|
+ :show-file-list="false"
|
|
|
+ :on-success="
|
|
|
+ (res) => {
|
|
|
+ uploadSuccessHandle1(res)
|
|
|
+ }
|
|
|
+ "
|
|
|
+ class="avatar-uploader"
|
|
|
+ accept=".jpg, .jpeg, .png, .gif"
|
|
|
+ ><el-button size="small" type="primary">点击上传</el-button>
|
|
|
+ </el-upload>
|
|
|
+ <div>
|
|
|
+ <img v-if='deptBudgetList.addressUrl' style='width:100px;height:100px;' :src="deptBudgetList.addressUrl" alt="">
|
|
|
+ </div>
|
|
|
<div class="small-title">化验数据(选填)</div>
|
|
|
<div class="inspector">
|
|
|
<!--自检员-->
|
|
@@ -255,6 +255,7 @@
|
|
|
v-model="deptBudgetList.warehouseInOutDetail.waterContent"
|
|
|
placeholder="请输入水分占比"
|
|
|
maxlength="120"
|
|
|
+ type="number" @mousewheel.native.prevent
|
|
|
size="small"
|
|
|
/>
|
|
|
</ws-form-item>
|
|
@@ -263,6 +264,7 @@
|
|
|
<ws-input
|
|
|
v-model="deptBudgetList.warehouseInOutDetail.impurity"
|
|
|
placeholder="请输入杂质占比"
|
|
|
+ type="number" @mousewheel.native.prevent
|
|
|
maxlength="120"
|
|
|
size="small"
|
|
|
/>
|
|
@@ -272,6 +274,7 @@
|
|
|
<ws-input
|
|
|
v-model="deptBudgetList.warehouseInOutDetail.bulkDensity"
|
|
|
placeholder="请输入容重"
|
|
|
+ type="number" @mousewheel.native.prevent
|
|
|
maxlength="120"
|
|
|
size="small"
|
|
|
/>
|
|
@@ -282,6 +285,7 @@
|
|
|
v-model="deptBudgetList.warehouseInOutDetail.mildewGrain"
|
|
|
placeholder="请输入霉变粒占比"
|
|
|
maxlength="120"
|
|
|
+ type="number" @mousewheel.native.prevent
|
|
|
size="small"
|
|
|
/>
|
|
|
</ws-form-item>
|
|
@@ -290,6 +294,7 @@
|
|
|
<ws-input
|
|
|
v-model="deptBudgetList.warehouseInOutDetail.jiaorenli"
|
|
|
placeholder="请输入热损伤占比"
|
|
|
+ type="number" @mousewheel.native.prevent
|
|
|
maxlength="120"
|
|
|
size="small"
|
|
|
/>
|
|
@@ -299,6 +304,7 @@
|
|
|
<ws-input
|
|
|
v-model="deptBudgetList.warehouseInOutDetail.imperfectGrain"
|
|
|
placeholder="请输入不完善粒占比"
|
|
|
+ type="number" @mousewheel.native.prevent
|
|
|
maxlength="120"
|
|
|
size="small"
|
|
|
/>
|
|
@@ -374,7 +380,6 @@ export default {
|
|
|
outContractNo: [],
|
|
|
appendixIdsAdd: '',
|
|
|
uploadSuccess: {},
|
|
|
- onChange: {},
|
|
|
gradeList: [],
|
|
|
agent: [],
|
|
|
staffList: [],
|
|
@@ -423,6 +428,9 @@ export default {
|
|
|
this.getList()
|
|
|
},
|
|
|
methods: {
|
|
|
+ uploadSuccessHandle1(res){
|
|
|
+ this.deptBudgetList.addressUrl=res.url
|
|
|
+ },
|
|
|
//返回按钮
|
|
|
revert() {
|
|
|
this.$router.push({ path: 'warehouseManagementList' })
|
|
@@ -923,27 +931,6 @@ export default {
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
- if (!this.deptBudgetList.deductionAmount) {
|
|
|
- this.$message({
|
|
|
- message: '扣款不能为空',
|
|
|
- type: 'warning'
|
|
|
- })
|
|
|
- return
|
|
|
- }
|
|
|
- if (
|
|
|
- this.deptBudgetList.deductionAmount < 0 ||
|
|
|
- this.deptBudgetList.deductionAmount > 10000 ||
|
|
|
- (String(this.deptBudgetList.deductionAmount).indexOf('.') != -1 &&
|
|
|
- String(this.deptBudgetList.deductionAmount).length -
|
|
|
- (String(this.deptBudgetList.deductionAmount).indexOf('.') + 1) >
|
|
|
- 2)
|
|
|
- ) {
|
|
|
- this.$message({
|
|
|
- message: '扣款输入错误',
|
|
|
- type: 'warning'
|
|
|
- })
|
|
|
- return
|
|
|
- }
|
|
|
|
|
|
if (!this.deptBudgetList.agent) {
|
|
|
this.$message({
|
|
@@ -1303,7 +1290,7 @@ export default {
|
|
|
})
|
|
|
}
|
|
|
//合同编号
|
|
|
- xialaNo({ compId: sessionStorage.getItem('ws-pf_compId') })
|
|
|
+ xialaNo({ compId: sessionStorage.getItem('ws-pf_compId'),flag:5 })
|
|
|
.toPromise()
|
|
|
.then((response) => {
|
|
|
this.outContractNo = response
|