|
@@ -8,168 +8,187 @@
|
|
|
label-width="120px"
|
|
|
class="demo-ruleForm"
|
|
|
>
|
|
|
- <el-row style="padding-top: 30px">
|
|
|
- <el-row>
|
|
|
- <el-col :span="12">
|
|
|
- <el-form-item label="采购供应商" prop="supplierNo">
|
|
|
- <!-- <el-input placeholder="占位" v-model="ruleForm.supplier_name" /> -->
|
|
|
- <!-- :disabled="ruleForm.status !== '0' && id != 'add'" -->
|
|
|
- <search-supplier
|
|
|
- :disabled="isDisabled"
|
|
|
- :value="ruleForm.supplierNo"
|
|
|
- :placeholder="'请选择供应商'"
|
|
|
- @searchChange="selectSupplier"
|
|
|
- />
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :span="12">
|
|
|
- <el-form-item label="预计入库时间" prop="expecttime">
|
|
|
- <!-- <el-input placeholder="占位" v-model="ruleForm.expecttime" /> -->
|
|
|
- <!-- :disabled="ruleForm.status !== '0' && id != 'add'" -->
|
|
|
- <el-date-picker
|
|
|
- :disabled="isDisabled"
|
|
|
- v-model="ruleForm.expecttime"
|
|
|
- type="datetime"
|
|
|
- style="width: 100%"
|
|
|
- value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
- placeholder="选择日期"
|
|
|
- :picker-options="pickerOptions"
|
|
|
- @change="selectTime"
|
|
|
- >
|
|
|
- </el-date-picker>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
- <el-row>
|
|
|
- <el-col :span="8">
|
|
|
- <el-form-item label="采购数量上限" prop="num">
|
|
|
- <el-input
|
|
|
- :disabled="isDisabled"
|
|
|
- placeholder="0"
|
|
|
- v-model="ruleForm.num"
|
|
|
- />
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :span="12" offset="4"
|
|
|
- ><el-form-item label="备注" prop="remark">
|
|
|
- <el-input
|
|
|
- :disabled="isDisabled"
|
|
|
- type="textarea"
|
|
|
- :autosize="{ minRows: 2, maxRows: 4 }"
|
|
|
- v-model="ruleForm.remark"
|
|
|
- /> </el-form-item
|
|
|
- ></el-col>
|
|
|
- </el-row>
|
|
|
- <!-- 商品重量 实时金价 工艺费 商品重量-->
|
|
|
- <el-row v-if="!isDisabled">
|
|
|
- <el-col :span="6">
|
|
|
- <el-form-item label="商品重量" prop="good_weight">
|
|
|
- <el-input placeholder="0" v-model="ruleForm.good_weight">
|
|
|
- <template slot="append">/g</template>
|
|
|
- </el-input>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :span="6">
|
|
|
- <el-form-item label="实时金价" prop="now_god_price">
|
|
|
- <el-input placeholder="0" v-model="ruleForm.now_god_price">
|
|
|
- <template slot="append">元</template>
|
|
|
- </el-input>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :span="6">
|
|
|
- <el-form-item label="工艺费" prop="teach_fee">
|
|
|
- <el-input placeholder="0" v-model="ruleForm.teach_fee">
|
|
|
- <template slot="append">元</template>
|
|
|
- </el-input>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :span="6">
|
|
|
- <el-form-item label="商品重量" prop="good_weight">
|
|
|
- <el-input placeholder="0" v-model="ruleForm.good_weight">
|
|
|
- <template slot="append">/g</template>
|
|
|
- </el-input>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
- <!--包装费 加标费 证书费 物流费-->
|
|
|
- <el-row v-if="!isDisabled">
|
|
|
- <el-col :span="6">
|
|
|
- <el-form-item label="包装费" prop="pakge_fee">
|
|
|
- <el-input placeholder="0" v-model="ruleForm.pakge_fee">
|
|
|
- <template slot="append">元</template>
|
|
|
- </el-input>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :span="6">
|
|
|
- <el-form-item label="加标费" prop="mark_fee">
|
|
|
- <el-input placeholder="0" v-model="ruleForm.mark_fee">
|
|
|
- <template slot="append">元</template>
|
|
|
- </el-input>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :span="6">
|
|
|
- <el-form-item label="证书费" prop="cert_fee">
|
|
|
- <el-input placeholder="0" v-model="ruleForm.cert_fee">
|
|
|
- <template slot="append">元</template>
|
|
|
- </el-input>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :span="6">
|
|
|
- <el-form-item label="物流费" prop="delivery_fee">
|
|
|
- <el-input placeholder="0" v-model="ruleForm.delivery_fee">
|
|
|
- <template slot="append">元</template>
|
|
|
- </el-input>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
- <!-- 开模费 采购数量 裸价-->
|
|
|
- <el-row v-if="!isDisabled">
|
|
|
- <el-col :span="6">
|
|
|
- <el-form-item label="开模费" prop="open_fee">
|
|
|
- <el-input placeholder="0" v-model="ruleForm.open_fee">
|
|
|
- <template slot="append">元</template>
|
|
|
- </el-input>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :span="6">
|
|
|
- <el-form-item label="采购数量" prop="purchase_num">
|
|
|
- <el-input placeholder="0" v-model="ruleForm.purchase_num" />
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :span="6">
|
|
|
- <el-form-item label="工差重量" prop="diff_weight">
|
|
|
- <el-input placeholder="0" v-model="ruleForm.diff_weight">
|
|
|
- <template slot="append">/g</template>
|
|
|
- </el-input>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :span="6">
|
|
|
- <el-form-item label="工差金额" prop="diff_price">
|
|
|
- <el-input placeholder="0" v-model="ruleForm.diff_price">
|
|
|
- <template slot="append">元</template>
|
|
|
- </el-input>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
- <!-- 单价,裸价,采购数量上限 -->
|
|
|
- <el-row>
|
|
|
- <el-col :span="8" v-if="!isDisabled">
|
|
|
- <el-form-item label="商品单价" prop="good_price">
|
|
|
- <el-input v-model="ruleForm.good_price" placeholder="0">
|
|
|
- <template slot="append">元</template>
|
|
|
- </el-input>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :span="8" v-if="!isDisabled">
|
|
|
- <el-form-item label="裸价" prop="nake_fee">
|
|
|
- <el-input v-model="ruleForm.nake_fee" placeholder="0">
|
|
|
- <template slot="append">元</template>
|
|
|
- </el-input>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
- <!-- :disabled="isDisabled" -->
|
|
|
- <el-col :span="24" style="text-align: right; padding-right: 50px">
|
|
|
+ <el-row>
|
|
|
+ <el-col :span="12" v-if="status === '1' && powers.some((item) => item == '024')">
|
|
|
+ <el-form-item label="采购供应商" prop="supplierNo">
|
|
|
+ <search-supplier
|
|
|
+ :disabled="
|
|
|
+ !(status == '1' && powers.some((item) => item == '024'))
|
|
|
+ "
|
|
|
+ :value="ruleForm.supplierNo"
|
|
|
+ :placeholder="'请选择供应商'"
|
|
|
+ :names="supplierName"
|
|
|
+ :isDetail="!(status === '0' && status == '1')"
|
|
|
+ @searchChange="selectSupplier"
|
|
|
+ />
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="预计入库时间" prop="expecttime">
|
|
|
+ <el-date-picker
|
|
|
+ :disabled="
|
|
|
+ !(status == '1' && powers.some((item) => item == '024'))
|
|
|
+ "
|
|
|
+ v-model="ruleForm.expecttime"
|
|
|
+ type="datetime"
|
|
|
+ style="width: 100%"
|
|
|
+ value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
+ placeholder="选择日期"
|
|
|
+ :picker-options="pickerOptions"
|
|
|
+ @change="selectTime"
|
|
|
+ >
|
|
|
+ </el-date-picker>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col
|
|
|
+ v-if="status === '1' && powers.some((item) => item == '024')"
|
|
|
+ :span="8"
|
|
|
+ >
|
|
|
+ <el-form-item label="实时金价" prop="now_god_price">
|
|
|
+ <el-input
|
|
|
+ placeholder="0"
|
|
|
+ disabled
|
|
|
+ maxlength="100"
|
|
|
+ v-model="ruleForm.now_god_price"
|
|
|
+ >
|
|
|
+ <template slot="append">元</template>
|
|
|
+ </el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="status === '1' && powers.some((item) => item == '024')?8:12">
|
|
|
+ <el-form-item label="采购数量上限" prop="num">
|
|
|
+ <el-input
|
|
|
+ :disabled="
|
|
|
+ !(status == '1' && powers.some((item) => item == '024'))
|
|
|
+ "
|
|
|
+ placeholder="0"
|
|
|
+ v-model="ruleForm.num"
|
|
|
+ />
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+
|
|
|
+ <el-col
|
|
|
+ v-if="status === '1' && powers.some((item) => item == '024')"
|
|
|
+ :span="8"
|
|
|
+ >
|
|
|
+ <el-form-item label="商品重量" prop="weight">
|
|
|
+ <el-input placeholder="0" v-model="ruleForm.weight">
|
|
|
+ <template slot="append">g</template>
|
|
|
+ </el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+
|
|
|
+ <el-col
|
|
|
+ v-if="status === '1' && powers.some((item) => item == '024')"
|
|
|
+ :span="8"
|
|
|
+ >
|
|
|
+ <el-form-item label="工艺费" prop="teach_fee">
|
|
|
+ <el-input placeholder="0" v-model="ruleForm.teach_fee">
|
|
|
+ <template slot="append">元</template>
|
|
|
+ </el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col
|
|
|
+ v-if="status === '1' && powers.some((item) => item == '024')"
|
|
|
+ :span="8"
|
|
|
+ >
|
|
|
+ <el-form-item label="包装费" prop="pakge_fee">
|
|
|
+ <el-input placeholder="0" v-model="ruleForm.pakge_fee">
|
|
|
+ <template slot="append">元</template>
|
|
|
+ </el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col
|
|
|
+ v-if="status === '1' && powers.some((item) => item == '024')"
|
|
|
+ :span="8"
|
|
|
+ >
|
|
|
+ <el-form-item label="加标费" prop="mark_fee">
|
|
|
+ <el-input placeholder="0" v-model="ruleForm.mark_fee">
|
|
|
+ <template slot="append">元</template>
|
|
|
+ </el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col
|
|
|
+ v-if="status === '1' && powers.some((item) => item == '024')"
|
|
|
+ :span="8"
|
|
|
+ >
|
|
|
+ <el-form-item label="证书费" prop="cert_fee">
|
|
|
+ <el-input placeholder="0" v-model="ruleForm.cert_fee">
|
|
|
+ <template slot="append">元</template>
|
|
|
+ </el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col
|
|
|
+ v-if="status === '1' && powers.some((item) => item == '024')"
|
|
|
+ :span="8"
|
|
|
+ >
|
|
|
+ <el-form-item label="物流费" prop="delivery_fee">
|
|
|
+ <el-input placeholder="0" v-model="ruleForm.delivery_fee">
|
|
|
+ <template slot="append">元</template>
|
|
|
+ </el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col
|
|
|
+ v-if="status === '1' && powers.some((item) => item == '024')"
|
|
|
+ :span="8"
|
|
|
+ >
|
|
|
+ <el-form-item label="开模费" prop="open_fee">
|
|
|
+ <el-input placeholder="0" v-model="ruleForm.open_fee">
|
|
|
+ <template slot="append">元</template>
|
|
|
+ </el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+
|
|
|
+ <el-col
|
|
|
+ v-if="status === '1' && powers.some((item) => item == '024')"
|
|
|
+ :span="8"
|
|
|
+ >
|
|
|
+ <el-form-item label="工差金额" prop="diff_price">
|
|
|
+ <el-input placeholder="0" v-model="ruleForm.diff_price">
|
|
|
+ <template slot="append">元</template>
|
|
|
+ </el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col
|
|
|
+ v-if="status === '1' && powers.some((item) => item == '024')"
|
|
|
+ :span="8"
|
|
|
+ >
|
|
|
+ <el-form-item label="工差重量" prop="diff_weight">
|
|
|
+ <el-input placeholder="0" v-model="ruleForm.diff_weight">
|
|
|
+ <template slot="append">g</template>
|
|
|
+ </el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+
|
|
|
+ <el-col
|
|
|
+ v-if="status === '1' && powers.some((item) => item == '024')"
|
|
|
+ :span="8"
|
|
|
+ >
|
|
|
+ <el-form-item label="裸价" prop="nake_fee">
|
|
|
+ <el-input v-model="ruleForm.nake_fee" placeholder="0">
|
|
|
+ <template slot="append">元</template>
|
|
|
+ </el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col
|
|
|
+ :span="
|
|
|
+ status === '1' && powers.some((item) => item == '024') ? 16 : 24
|
|
|
+ "
|
|
|
+ ><el-form-item label="备注" prop="remark">
|
|
|
+ <el-input
|
|
|
+ :disabled="
|
|
|
+ !(status == '1' && powers.some((item) => item == '024'))
|
|
|
+ "
|
|
|
+ type="textarea"
|
|
|
+ :autosize="{ minRows: 2, maxRows: 4 }"
|
|
|
+ v-model="ruleForm.remark"
|
|
|
+ /> </el-form-item
|
|
|
+ ></el-col>
|
|
|
+ <el-col
|
|
|
+ :span="8"
|
|
|
+ style="text-align: right; padding: 0 50px 20px 0"
|
|
|
+ v-if="status === '1' && powers.some((item) => item == '024')"
|
|
|
+ >
|
|
|
<el-button type="primary" @click="submitForm" :size="'mini'"
|
|
|
>保 存
|
|
|
</el-button>
|
|
@@ -186,23 +205,41 @@ export default {
|
|
|
name: "storeManage",
|
|
|
props: ["id", "sitem", "newTime"],
|
|
|
mixins: [resToken],
|
|
|
+ computed: {
|
|
|
+ powers() {
|
|
|
+ let tran =
|
|
|
+ this.$store.getters.btnList.find(
|
|
|
+ (item) => item.menu_route == "storeManageFlow"
|
|
|
+ ) || {};
|
|
|
+ if (tran && tran.action && tran.action.length > 0) {
|
|
|
+ return tran.action;
|
|
|
+ } else {
|
|
|
+ return [];
|
|
|
+ }
|
|
|
+ },
|
|
|
+ },
|
|
|
data() {
|
|
|
return {
|
|
|
- isDisabled: false,
|
|
|
+ pickerOptions: {
|
|
|
+ disabledDate(time) {
|
|
|
+ return time.getTime() < Date.now();
|
|
|
+ },
|
|
|
+ },
|
|
|
+
|
|
|
+ lasttime: "",
|
|
|
+ supplierName: "",
|
|
|
status: "",
|
|
|
loading: false,
|
|
|
- title: "新建备货反馈",
|
|
|
ruleForm: {
|
|
|
id: "",
|
|
|
- good_price: "", //单价
|
|
|
- nake_fee: "", //裸价
|
|
|
- wsm_code: "", //仓库
|
|
|
- supplier_code: "", //供应商
|
|
|
- supplierNo: [], //采购供应商编码
|
|
|
+ good_price: "",
|
|
|
+ nake_fee: "",
|
|
|
+ wsm_code: "",
|
|
|
+ supplier_code: "",
|
|
|
+ supplierNo: [],
|
|
|
num: "",
|
|
|
- purchase_num: "",
|
|
|
expecttime: "",
|
|
|
- good_weight: "",
|
|
|
+ weight: "",
|
|
|
now_god_price: "",
|
|
|
teach_fee: "",
|
|
|
pakge_fee: "",
|
|
@@ -220,25 +257,23 @@ export default {
|
|
|
created() {
|
|
|
this.initForm();
|
|
|
},
|
|
|
- mounted() {
|
|
|
- this.newTime = this.newTime;
|
|
|
- },
|
|
|
watch: {
|
|
|
newTime: function (val) {
|
|
|
- console.log(val);
|
|
|
if (val) {
|
|
|
this.initForm();
|
|
|
}
|
|
|
},
|
|
|
},
|
|
|
methods: {
|
|
|
- //
|
|
|
async initForm() {
|
|
|
this.loading = true;
|
|
|
this.status = this.sitem.status;
|
|
|
- this.ruleForm.wsm_code = this.sitem.wsm_code;
|
|
|
+ // this.ruleForm.wsm_code = this.sitem.wsm_code;
|
|
|
+ this.supplierName = "";
|
|
|
await this.resetForm();
|
|
|
- await this.initData();
|
|
|
+ if (this.status !== "1") {
|
|
|
+ await this.initData();
|
|
|
+ }
|
|
|
|
|
|
this.loading = false;
|
|
|
},
|
|
@@ -248,28 +283,40 @@ export default {
|
|
|
if (this.$refs.ruleForm) {
|
|
|
this.$refs.ruleForm.resetFields();
|
|
|
this.$refs.ruleForm.clearValidate();
|
|
|
- this.ruleForm = {
|
|
|
- id: "",
|
|
|
- good_price: "100", //单价
|
|
|
- nake_fee: "100", //裸价
|
|
|
- wsm_code: this.sitem.wsm_code, //仓库
|
|
|
- supplier_code: "", //供应商编码
|
|
|
- supplierNo: [], //采购供应商
|
|
|
- num: "100", //最大采购数量
|
|
|
- expecttime: "", //预计入库时间
|
|
|
- good_weight: "100", //贵金属重量
|
|
|
- purchase_num: "100", //采购数量
|
|
|
- now_god_price: "100", //实时金价
|
|
|
- teach_fee: "100", //工艺费
|
|
|
- pakge_fee: "100", //包装费
|
|
|
- mark_fee: "100", //加标费
|
|
|
- cert_fee: "100", //证书费
|
|
|
- delivery_fee: "100", //物流费
|
|
|
- open_fee: "100", //开模费
|
|
|
- diff_weight: "100", //工差重量
|
|
|
- diff_price: "100", //工差金额
|
|
|
- remark: "100",
|
|
|
- };
|
|
|
+ if (this.status !== "1") {
|
|
|
+ this.ruleForm.wsm_code = this.sitem.wsm_code;
|
|
|
+
|
|
|
+ this.ruleForm = {
|
|
|
+ wsm_code: "",
|
|
|
+ supplier_code: "",
|
|
|
+ supplierNo: [],
|
|
|
+ num: "",
|
|
|
+ expecttime: "",
|
|
|
+ remark: "",
|
|
|
+ };
|
|
|
+ } else {
|
|
|
+ this.ruleForm = {
|
|
|
+ id: this.id,
|
|
|
+ good_price: "10",
|
|
|
+ nake_fee: "10",
|
|
|
+ wsm_code: this.sitem.wsm_code,
|
|
|
+ supplier_code: "",
|
|
|
+ supplierNo: [],
|
|
|
+ num: "10",
|
|
|
+ expecttime: "",
|
|
|
+ weight: "10",
|
|
|
+ now_god_price: "10",
|
|
|
+ teach_fee: "10",
|
|
|
+ pakge_fee: "10",
|
|
|
+ mark_fee: "10",
|
|
|
+ cert_fee: "10",
|
|
|
+ delivery_fee: "10",
|
|
|
+ open_fee: "10",
|
|
|
+ diff_weight: "10",
|
|
|
+ diff_price: "10",
|
|
|
+ remark: "10",
|
|
|
+ };
|
|
|
+ }
|
|
|
}
|
|
|
});
|
|
|
},
|
|
@@ -277,17 +324,22 @@ export default {
|
|
|
async submitForm() {
|
|
|
await this.$refs.ruleForm.validate(async (valid) => {
|
|
|
if (valid) {
|
|
|
+ let last = new Date(this.lasttime).valueOf();
|
|
|
+ let ch = new Date(this.ruleForm.expecttime).valueOf();
|
|
|
+ if (last < ch) {
|
|
|
+ this.$message.warning("预计入库时间不能大于最晚入库时间");
|
|
|
+ return;
|
|
|
+ }
|
|
|
this.loading = true;
|
|
|
- const list = JSON.parse(JSON.stringify(this.ruleForm));
|
|
|
- list.supplierNo = list.supplierNo.toString();
|
|
|
- const res = await asyncRequest.addFee(list);
|
|
|
- // this.loading = false;
|
|
|
+ const item = JSON.parse(JSON.stringify(this.ruleForm));
|
|
|
+ item.supplierNo = item.supplierNo.toString();
|
|
|
+ const res = await asyncRequest.addFee(item);
|
|
|
if (res && res.code === 0) {
|
|
|
this.$notify.success({
|
|
|
title: "添加成功",
|
|
|
message: "",
|
|
|
});
|
|
|
- this.$emit("refresh"); //抛出事件给详情页。
|
|
|
+ this.$emit("refresh");
|
|
|
} else if (res && res.code >= 100 && res.code <= 104) {
|
|
|
await this.logout();
|
|
|
} else {
|
|
@@ -301,27 +353,19 @@ export default {
|
|
|
},
|
|
|
// 获取详情
|
|
|
async initData() {
|
|
|
- console.log(this.sitem);
|
|
|
- this.ruleForm.id = this.sitem.id;
|
|
|
- const res = await asyncRequest.feeDetail({ id: this.ruleForm.id });
|
|
|
+ this.id = this.sitem.id;
|
|
|
+ const res = await asyncRequest.feeDetail({ id: this.id });
|
|
|
if (res && res.code === 0 && res.data) {
|
|
|
- console.log(res.data, "sitem");
|
|
|
-
|
|
|
- let { wsm_supplier, expecttime, num, remark, wsm_supplierNo } =
|
|
|
+ let { expecttime, num, remark, supplier, supplier_name, lasttime } =
|
|
|
res.data;
|
|
|
- if (wsm_supplier) {
|
|
|
- this.isDisabled = true;
|
|
|
- this.ruleForm = {
|
|
|
- supplierNo: wsm_supplier.split(","),
|
|
|
- expecttime,
|
|
|
- supplier_name: wsm_supplier, //供应商
|
|
|
- supplier_code: wsm_supplierNo, //采购供应商编码
|
|
|
- num, //最大采购数量
|
|
|
- remark,
|
|
|
- };
|
|
|
- }
|
|
|
- console.log(wsm_supplierNo.split(","));
|
|
|
- console.log(this.ruleForm.supplierNo);
|
|
|
+ this.supplierName = supplier_name;
|
|
|
+ this.lasttime = lasttime;
|
|
|
+ this.ruleForm = {
|
|
|
+ supplierNo: supplier.split(","),
|
|
|
+ expecttime,
|
|
|
+ num,
|
|
|
+ remark,
|
|
|
+ };
|
|
|
} else if (res && res.code >= 100 && res.code <= 104) {
|
|
|
await this.logout();
|
|
|
} else {
|
|
@@ -336,9 +380,8 @@ export default {
|
|
|
this.ruleForm.supplierNo = [e.code];
|
|
|
} else {
|
|
|
this.ruleForm.supplierNo = [];
|
|
|
- this.ruleForm.stock_code = [];
|
|
|
}
|
|
|
- this.$refs.ruleForm.validateField("supplierNo ");
|
|
|
+ this.$refs.ruleForm.validateField("supplierNo");
|
|
|
},
|
|
|
},
|
|
|
};
|