|
@@ -67,14 +67,14 @@
|
|
</el-input>
|
|
</el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<!-- 货名 -->
|
|
<!-- 货名 -->
|
|
- <el-form-item label="货名" class="huom">
|
|
|
|
- <el-select :disabled="dataList.taskTypeKey != 3" v-model="dataList.goodsName" placeholder="货名"
|
|
|
|
|
|
+ <!-- <el-form-item label="货源" class="huom">
|
|
|
|
+ <el-select :disabled="dataList.taskTypeKey != 3" v-model="dataList.goodsName" placeholder="货源"
|
|
class="huom" @change="selectgoodsName" filterable clearable>
|
|
class="huom" @change="selectgoodsName" filterable clearable>
|
|
<el-option v-for="item in goodnameList" :key="item.constKey" :label="item.constValue"
|
|
<el-option v-for="item in goodnameList" :key="item.constKey" :label="item.constValue"
|
|
:value="item.constValue"></el-option>
|
|
:value="item.constValue"></el-option>
|
|
</el-select>
|
|
</el-select>
|
|
<el-button class="bg-bottom" type="primary" size="small" @click="supplygoods()">选择货源</el-button>
|
|
<el-button class="bg-bottom" type="primary" size="small" @click="supplygoods()">选择货源</el-button>
|
|
- </el-form-item>
|
|
|
|
|
|
+ </el-form-item> -->
|
|
<!--重量(吨)-->
|
|
<!--重量(吨)-->
|
|
<el-form-item label="重量(吨)">
|
|
<el-form-item label="重量(吨)">
|
|
<el-input @input="weightchange1" v-model="dataList.weight" placeholder="请输入重量(吨)"
|
|
<el-input @input="weightchange1" v-model="dataList.weight" placeholder="请输入重量(吨)"
|
|
@@ -171,16 +171,16 @@
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<!-- 货名 -->
|
|
<!-- 货名 -->
|
|
- <el-form-item label="货源" class="huom">
|
|
|
|
- <!-- <el-select :disabled="dataList.taskTypeKey != 3 || dataList.taskTypeKey == 3" filterable clearable
|
|
|
|
|
|
+ <!--<el-form-item label="货源" class="huom">
|
|
|
|
+ <el-select :disabled="dataList.taskTypeKey != 3 || dataList.taskTypeKey == 3" filterable clearable
|
|
v-model="dataList.goodsName" placeholder="货名" class="huom" @change="selectgoodsName1">
|
|
v-model="dataList.goodsName" placeholder="货名" class="huom" @change="selectgoodsName1">
|
|
<el-option v-for="item in goodnameList" :key="item.constKey" :label="item.constValue"
|
|
<el-option v-for="item in goodnameList" :key="item.constKey" :label="item.constValue"
|
|
:value="item.constValue"></el-option>
|
|
:value="item.constValue"></el-option>
|
|
- </el-select> -->
|
|
|
|
|
|
+ </el-select>
|
|
<el-input disabled v-model="dataList.sourceId" placeholder="请选择货源"
|
|
<el-input disabled v-model="dataList.sourceId" placeholder="请选择货源"
|
|
maxlength="120" size="small" class="huom" />
|
|
maxlength="120" size="small" class="huom" />
|
|
<el-button v-if='dataList.taskTypeKey!=3' class="bg-bottom" type="primary" size="small" @click="supplygoods()">选择货源</el-button>
|
|
<el-button v-if='dataList.taskTypeKey!=3' class="bg-bottom" type="primary" size="small" @click="supplygoods()">选择货源</el-button>
|
|
- </el-form-item>
|
|
|
|
|
|
+ </el-form-item>-->
|
|
<!--重量(吨)-->
|
|
<!--重量(吨)-->
|
|
<el-form-item label="重量(吨)">
|
|
<el-form-item label="重量(吨)">
|
|
<el-input @input="weightchange" v-model="dataList1.weight" placeholder="请输入重量(吨)"
|
|
<el-input @input="weightchange" v-model="dataList1.weight" placeholder="请输入重量(吨)"
|
|
@@ -282,16 +282,16 @@
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<!-- 货名 -->
|
|
<!-- 货名 -->
|
|
- <el-form-item label="货名" class="huom">
|
|
|
|
- <!-- <el-select :disabled="dataList.taskTypeKey != 3" v-model="dataList.goodsName" placeholder="货名"
|
|
|
|
|
|
+ <!-- <el-form-item label="货源" class="huom">
|
|
|
|
+ <el-select :disabled="dataList.taskTypeKey != 3" v-model="dataList.goodsName" placeholder="货名"
|
|
class="huom" @change="selectgoodsName " filterable clearable>
|
|
class="huom" @change="selectgoodsName " filterable clearable>
|
|
<el-option v-for="item in goodnameList" :key="item.constKey" :label="item.constValue"
|
|
<el-option v-for="item in goodnameList" :key="item.constKey" :label="item.constValue"
|
|
:value="item.constValue"></el-option>
|
|
:value="item.constValue"></el-option>
|
|
- </el-select>-->
|
|
|
|
|
|
+ </el-select>
|
|
<el-input disabled v-model="dataList.sourceId" placeholder="请选择货源"
|
|
<el-input disabled v-model="dataList.sourceId" placeholder="请选择货源"
|
|
maxlength="120" size="small" class="huom" />
|
|
maxlength="120" size="small" class="huom" />
|
|
- <!-- <el-button class="bg-bottom" type="primary" size="small" @click="supplygoods()">选择货源</el-button> -->
|
|
|
|
- </el-form-item>
|
|
|
|
|
|
+ <el-button class="bg-bottom" type="primary" size="small" @click="supplygoods()">选择货源</el-button>
|
|
|
|
+ </el-form-item>-->
|
|
<!--重量(吨)-->
|
|
<!--重量(吨)-->
|
|
<el-form-item label="重量(吨)">
|
|
<el-form-item label="重量(吨)">
|
|
<el-input :disabled="dataList.taskTypeKey == 4" v-model="dataList.weight" placeholder="请输入重量(吨)"
|
|
<el-input :disabled="dataList.taskTypeKey == 4" v-model="dataList.weight" placeholder="请输入重量(吨)"
|
|
@@ -504,12 +504,14 @@
|
|
activated() {
|
|
activated() {
|
|
this.getList()
|
|
this.getList()
|
|
var goods=''
|
|
var goods=''
|
|
|
|
+ var num=0
|
|
this.sourceId=''
|
|
this.sourceId=''
|
|
if(localStorage.setItem("supplygoods")){
|
|
if(localStorage.setItem("supplygoods")){
|
|
var supplygoods=JSON.parse(localStorage.setItem("supplygoods"))
|
|
var supplygoods=JSON.parse(localStorage.setItem("supplygoods"))
|
|
for (let i = 0; i < supplygoods.length; i++) {
|
|
for (let i = 0; i < supplygoods.length; i++) {
|
|
goods+=supplygoods[i].goodsName
|
|
goods+=supplygoods[i].goodsName
|
|
this.sourceId=this.sourceId+','+supplygoods[i].id
|
|
this.sourceId=this.sourceId+','+supplygoods[i].id
|
|
|
|
+ num+=supplygoods[i].outWeight
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|