master
xy 11 months ago
parent e9bc3bf48e
commit 1ade6d0129

@ -2,6 +2,7 @@
ENV = 'development' ENV = 'development'
# base api # base api
#VUE_APP_BASE_API='http://192.167.20.118:8080/'
VUE_APP_BASE_API='https://cz-hjjc-test.115.langye.net' VUE_APP_BASE_API='https://cz-hjjc-test.115.langye.net'
VUE_APP_UPLOAD_API='https://cz-hjjc-test.115.langye.net/api/upload-file' VUE_APP_UPLOAD_API='https://cz-hjjc-test.115.langye.net/api/upload-file'
VUE_APP_PREVIEW=//view.langye.net/preview/onlinePreview VUE_APP_PREVIEW=//view.langye.net/preview/onlinePreview

@ -857,7 +857,7 @@ export default {
money_way_id: [ money_way_id: [
{ {
validator: (rule, value, callback) => { validator: (rule, value, callback) => {
if (!this.hasValue(value) || !this.form.is_common_purchase) { if (!this.hasValue(value) && !this.form.is_common_purchase) {
callback(new Error("必填")); callback(new Error("必填"));
} else { } else {
callback(); callback();
@ -912,7 +912,9 @@ export default {
value !== "" && value !== "" &&
value !== undefined && value !== undefined &&
value !== "undefined" && value !== "undefined" &&
value !== null value !== null &&
value !== 'null' &&
(value instanceof Array ? value.length > 0 : true)
); );
}, },
planPick(selection) { planPick(selection) {

@ -1524,6 +1524,10 @@ export default {
if (this.form.is_contract) { if (this.form.is_contract) {
this.form.is_tender_audit = 1 this.form.is_tender_audit = 1
} }
if (this.form.is_simple) {
this.form.is_contract = 0
this.form.is_tender_audit = 0
}
// this.form.is_contract = this.flowIds?.find(i => i.id == this.form.flow_mod_id)?.type == 2 ? 0 : 1; // this.form.is_contract = this.flowIds?.find(i => i.id == this.form.flow_mod_id)?.type == 2 ? 0 : 1;
if (!this.form.money) { if (!this.form.money) {
this.form.money = this.form.plan_price this.form.money = this.form.plan_price

Loading…
Cancel
Save