|
@@ -291,7 +291,6 @@ $(document).ready(function () {
|
|
|
};
|
|
|
const _self = $(this);
|
|
|
postData('/tender/' + cur_tenderid + '/shenpi/save', prop, function (data) {
|
|
|
- $('#stage_cooperation').hide();
|
|
|
if (this_status === sp_status.sqspr) {
|
|
|
_self.parents('.form-group').siblings('.lc-show').html('');
|
|
|
} else if (this_status === sp_status.gdspl) {
|
|
@@ -306,7 +305,7 @@ $(document).ready(function () {
|
|
|
}
|
|
|
addhtml += '</ul>\n';
|
|
|
_self.parents('.form-group').siblings('.lc-show').html(addhtml);
|
|
|
- $('#stage_cooperation').show();
|
|
|
+
|
|
|
} else if (this_status === sp_status.gdzs) {
|
|
|
let addhtml = '<ul class="list-unstyled">\n' +
|
|
|
' <li class="d-flex justify-content-start mb-3">\n' +
|
|
@@ -319,6 +318,14 @@ $(document).ready(function () {
|
|
|
addhtml += '</ul>\n';
|
|
|
_self.parents('.form-group').siblings('.lc-show').html(addhtml);
|
|
|
}
|
|
|
+
|
|
|
+ if(this_code === 'stage') {
|
|
|
+ if(this_status === sp_status.gdspl) {
|
|
|
+ $('#stage_cooperation').show();
|
|
|
+ } else {
|
|
|
+ $('#stage_cooperation').hide();
|
|
|
+ }
|
|
|
+ }
|
|
|
});
|
|
|
});
|
|
|
|
|
@@ -917,7 +924,7 @@ $(document).ready(function () {
|
|
|
|
|
|
function setRightData(datas, coolist) {
|
|
|
const newdatas = [];
|
|
|
- const reg = /(^GD([a-zA-Z0-9\-]+))|(\d+)/;
|
|
|
+ const reg = /(^GD([a-zA-Z0-9\-]+))|(^([0-9\-]+)$)/;
|
|
|
for (const l of datas) {
|
|
|
if (reg.test(l.code) && l.level <= 4) {
|
|
|
if(l.level === 4 && l.is_leaf === false) {
|